<template>
    <div class="custom">
         <transition name='left'>
         <div v-show='leftshow' id='leftDiv' class='layout-left' :style='{marginLeft:leftDomMargin, width:leftDomWidth}'>
            <div class="zong" >
                <div  class="customTop">
                    <div class="font16">
                        <div class="customBack">
                            <a @click="goBack"><i class="el-icon-back"></i>返回</a>
                        </div>
                        <span>{{currentProject.itemName}}</span>
                    </div>
                </div>
                <div class="customLt">
                    <el-collapse v-model="activeName" accordion>
                        <el-collapse-item name="1">
                                <div class="lts">
                                    <div class="font30" v-if="form.id != null && isFirst">
                                        <span class="ssew" v-if="form.lampparamNo==''">灯参编号</span>
                                        <span class="ssew"  v-else style="font-size:12px;">{{form.lampparamNoTex}}</span>
                                        <div class="poi">
                                            <label @click="bnhos2()"><input name="Fruit" type="checkbox" value="" /> </label> 自定义编号
                                            <el-input type="text" v-model="form.customLampparmNo" :disabled="bnho2"></el-input>
                                        </div> 
                                    </div>
                                    <div class="font30" v-else>
                                        <span class="ssew" v-if="form.lampparamNo==''">灯参编号</span>
                                        <span class="ssew"  v-else>{{form.lampparamNo}}</span>
                                         <div class="poi">
                                            <label @click="bnhos()"><input name="Fruit" type="checkbox" value="" /> </label> 自定义编号
                                            <el-input type="text" v-model="form.customLampparmNo" :disabled="bnhoswr"></el-input>
                                        </div>
                                    </div>
                                   
                                    <div class="font18">
                                        <el-form :inline="true" class="demo-form-inline">
                                            <el-form-item label="光色类型">
                                                <el-dropdown trigger="click" @command="changeColorType">
                                                    <span class="el-dropdown-link">
                                                        <span v-html="currentColorType.dictCont"></span><i class="el-icon-arrow-down el-icon--right"></i>
                                                    </span>
                                                    <el-dropdown-menu slot="dropdown">
                                                        <el-dropdown-item v-for="item in colorTypeList" :key="item.id" :command="item" icon="el-icon-plus" v-html="item.dictCont"></el-dropdown-item>
                                                    </el-dropdown-menu>
                                                </el-dropdown>
                                            </el-form-item>
                                            <el-form-item label="光束角">
                                                <el-select v-model="form.angleNo" @change="changeAngleNo">
                                                    <el-option v-for="item in AnglemapList" :key="item.id" :label="item.ruleKey" :value="item.ruleNo"></el-option>
                                                </el-select>
                                            </el-form-item>
                                        </el-form>
                                    </div>
                                </div>
                                <div class="div"></div>
                                <el-form :inline="true" class="demo-form-inline application">
                                    <div class="contrascont">
                                        <div class="title"><span class="font20">应用需求</span></div>
                                        <ul>
                                            <li class="wh50 wh502">
                                                <div class="img" @click="showcontestTypeDialog">
                                                    <img :src="ImgPath + currentContestType.sketchMapOriginal" alt="应用面示意图">
                                                </div>
                                                <el-form-item v-show="currentContestType.sketchAttr.H || (currentcontestforTypeInfoChild.sketchAttrCoordinate != null && currentcontestforTypeInfoChild.sketchAttrCoordinate.H)" label="H" class="power">
                                                    <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkIntegerTwo()" v-model="form.contestH"  ></el-input>
                                                </el-form-item>
                                                <el-form-item v-show="currentContestType.sketchAttr.W || (currentcontestforTypeInfoChild.sketchAttrCoordinate != null && currentcontestforTypeInfoChild.sketchAttrCoordinate.W)" label="W" class="power">
                                                    <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkIntegerTwo()" v-model="form.contestW"  ></el-input>
                                                </el-form-item>
                                                <el-form-item v-show="currentContestType.sketchAttr.W1 || (currentcontestforTypeInfoChild.sketchAttrCoordinate != null && currentcontestforTypeInfoChild.sketchAttrCoordinate.W1)" label="W1" class="power">
                                                    <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkIntegerTwo()" v-model="form.contestW1"  ></el-input>
                                                </el-form-item>
                                                <el-form-item v-show="currentContestType.sketchAttr.W2 || (currentcontestforTypeInfoChild.sketchAttrCoordinate != null && currentcontestforTypeInfoChild.sketchAttrCoordinate.W2)" label="W2" class="power">
                                                    <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkIntegerTwo()" v-model="form.contestW2"></el-input>
                                                </el-form-item>
                                                <el-form-item v-show="currentContestType.sketchAttr.D || (currentcontestforTypeInfoChild.sketchAttrCoordinate != null && currentcontestforTypeInfoChild.sketchAttrCoordinate.D)" label="D" class="power">
                                                    <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkIntegerTwo()" v-model="form.lumSizeMin"  ></el-input>
                                                    <span v-show="currentContestType.contestTypeStr!='窗框'">
                                                    ~
                                                    <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkIntegerTwo()" v-model="form.lumSize"  ></el-input>
                                                    </span>
                                                </el-form-item>
                                            </li>
                                            <li class="wh50 wh502">
                                                <div class="img" @click="showLampDialog">
                                                    <img :src="ImgPath + currentLampSketch.sketchMapOriginal" alt="灯具示意图">
                                                </div>
                                                <el-form-item v-show="currentLampSketch.lampAttr.L" label="L" class="power">
                                                    <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkIntegerTwo()" v-model="form.lampLong"  ></el-input>
                                                </el-form-item>
                                                <el-form-item v-show="currentLampSketch.lampAttr.W" label="W" class="power">
                                                    <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkIntegerTwo()" v-model="form.lampWidth"  ></el-input>
                                                </el-form-item>
                                                <el-form-item v-show="currentLampSketch.lampAttr.D" label="D" class="power">
                                                    <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkIntegerTwo()" v-model="form.lampHeight"  ></el-input>
                                                </el-form-item>
                                            </li>
                                            <li class="cd1">
                                            <div class="BoxTable">
                                                <div class="BoxCell">
                                                应用类型
                                                </div>
                                            </div> 
                                            </li>
                                            <li class="cd2">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        {{currentContestType.contestTypeStr}}
                                                    </div>
                                                </div> 
                                            </li>
                                            <li class="cd1" >
                                                <div class="BoxTable">
                                                    <div class="BoxCell" v-show="currentContestType.contestTypeStr!='不控光点光源' && currentContestType.contestTypeStr!='控光点光源' && currentContestType.contestTypeStr!='远视点光源' && currentContestType.contestTypeStr!='自发光线'&& currentContestType.contestTypeStr!='单侧导光'&& currentContestType.contestTypeStr!='双侧导光'">
                                                        反射率
                                                    </div>
                                                </div> 
                                            </li>
                                            <li class="cd2" >
                                                <div class="BoxTable">
                                                    <div class="BoxCell" v-show="currentContestType.contestTypeStr!='不控光点光源' && currentContestType.contestTypeStr!='控光点光源' && currentContestType.contestTypeStr!='远视点光源' && currentContestType.contestTypeStr!='自发光线'&& currentContestType.contestTypeStr!='单侧导光'&& currentContestType.contestTypeStr!='双侧导光'">
                                                       <el-input v-model="form.albedo" @input="blurAlbedo()"></el-input>
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd3">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        注：灯具图片仅作参考，灯珠排布及灯具外型由厂家深化，设计方及业主方最终确定，灯具尺寸不大于图示尺寸
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="title">照明需求</li>
                                        </ul>
                                        <!-- 应用类型  洗墙、柱子、瓦楞 单侧导光、双侧导光、光电玻璃、自发光线 为一类  暗斑高度是洗墙、立柱、-->
                                        <ul class="uls lianghua" v-if="currentContestType.contestTypeStr=='洗墙' || currentContestType.contestTypeStr=='柱子' || currentContestType.contestTypeStr=='瓦楞' || currentContestType.contestTypeStr=='自发光线'|| currentContestType.contestTypeStr=='单侧导光'|| currentContestType.contestTypeStr=='双侧导光' ">
                                            <li class="lt">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        量化指标
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="rt">
                                                 <table >
                                                    <tr>
                                                        <th v-if="form.colorType == 2">颜色</th>
                                                        <th width='190'>平均亮度(cd/㎡)</th>
                                                        <th width='110'>最大亮度(cd/㎡)</th>
                                                        <th width='110'>最小亮度(cd/㎡)</th>
                                                        <th>均匀度</th>
                                                        <th v-if="currentContestType.contestTypeStr=='洗墙' || currentContestType.contestTypeStr=='柱子' || currentContestType.contestTypeStr=='瓦楞'">暗斑高度(m)</th>
                                                    </tr>
                                                    <tr>
                                                        <td v-if="form.colorType == 2">全亮</td>
                                                        <td class="pingjun">
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessAvgMin"  ></el-input>
                                                            </el-form-item>
                                                             <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessAvgMax"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≤">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessMax"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessMin"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].evenness"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td v-if="currentContestType.contestTypeStr=='洗墙' || currentContestType.contestTypeStr=='柱子' || currentContestType.contestTypeStr=='瓦楞' ">
                                                            <el-form-item label="≤" class="anban">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].maculaHight"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                    <tr v-if="form.colorType == 2">
                                                        <td>
                                                            <el-popover ref="popoverlh" placement="bottom" width="160" trigger="focus" popper-class="xiala">
                                                                <ul>
                                                                <li v-for="(item,index) in zidingyiColorList" :key="index" @click="setlh(item.dictCont)">{{item.dictCont}}</li>
                                                                </ul>
                                                            </el-popover>
                                                            <el-input v-model="form.projectParamindexList[0].colorTemperatureCustom" v-popover:popoverlh  ></el-input>

                                                        </td>
                                                        <td class="pingjun">
                                                            <el-form-item>
                                                                <el-input  maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo"  v-model="form.projectParamindexList[0].brightnessAvgMinCustom"  ></el-input>
                                                            </el-form-item>
                                                             <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input  maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo"  v-model="form.projectParamindexList[0].brightnessAvgMaxCustom"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        
                                                    </tr>
                                                </table>
                                            </li>
                                        </ul>
                                        <!--窗框、复合面  -->
                                        <ul class="uls lianghua" v-else-if="currentContestType.contestTypeStr=='复合面' || currentContestType.contestTypeStr=='窗框'">
                                            <li class="lt">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        量化指标
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="rt">
                                                 <table >
                                                    <tr>
                                                        <th v-if="form.colorType == 2">颜色</th>
                                                        <th width="80">应用面</th>
                                                        <th width='190'>平均亮度(cd/㎡)</th>
                                                        <th width='110'>最大亮度(cd/㎡)</th>
                                                        <th width='110'>最小亮度(cd/㎡)</th>
                                                        <th width='80'>均匀度</th>
                                                        <th>暗斑高度(m)</th>
                                                    </tr>
                                                    <tr>
                                                        <td v-if="form.colorType == 2" rowspan="2">全亮</td>
                                                        <td>A面</td>
                                                        <td class="pingjun">
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessAvgMin"  ></el-input>
                                                            </el-form-item>
                                                             <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input  maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessAvgMax"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≤">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessMax"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessMin"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].evenness"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≤" class="anban">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].maculaHight"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td>B面</td>
                                                        <td class="pingjun">
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[1].brightnessAvgMin"  ></el-input>
                                                            </el-form-item>
                                                             <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[1].brightnessAvgMax"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≤">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[1].brightnessMax"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[1].brightnessMin"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[1].evenness"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≤" class="anban">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[1].maculaHight"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                    <tr v-if="form.colorType == 2">
                                                        <td rowspan="2">
                                                             <el-popover ref="popoverlh" placement="bottom" width="160" trigger="focus" popper-class="xiala">
                                                                <ul>
                                                                <li v-for="(item,index) in zidingyiColorList" :key="index" @click="setlhs(item.dictCont)">{{item.dictCont}}</li>
                                                                </ul>
                                                            </el-popover>
                                                            <el-input style="width:50px" v-model="form.projectParamindexList[0].colorTemperatureCustom" v-popover:popoverlh  class="pot"></el-input>
                                                        </td>
                                                        <td>A面</td>
                                                        <td class="pingjun">
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessAvgMinCustom"  ></el-input>
                                                            </el-form-item>
                                                             <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessAvgMaxCustom"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                    <tr v-if="form.colorType == 2">
                                                        <td>B面</td>
                                                        <td class="pingjun">
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[1].brightnessAvgMinCustom"  ></el-input>
                                                            </el-form-item>
                                                             <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[1].brightnessAvgMaxCustom"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </li>
                                        </ul>

                                        <!--正投 -->
                                        <ul class="uls lianghua" v-else-if="currentContestType.contestTypeStr=='正投'">
                                            <li class="lt">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        量化指标
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="rt">
                                                 <table>
                                                    <tr>
                                                        <th v-if="form.colorType == 2" width='50'>颜色</th>
                                                        <th width='190'>平均亮度(cd/㎡)</th>
                                                        <th>
                                                            <el-select v-model="tabMaxA">
                                                                <el-option label="最大亮度(cd/㎡)" value="1"></el-option>
                                                                <el-option label="A点亮度(cd/㎡)" value="2"></el-option>
                                                            </el-select>
                                                        </th>
                                                        <th>均匀度</th>
                                                        <th>b/c亮度比</th>
                                                    </tr>
                                                    <tr>
                                                        <td v-if="form.colorType == 2">全亮</td>
                                                        <td class="pingjun">
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessAvgMin"  ></el-input>
                                                            </el-form-item>
                                                             <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessAvgMax"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≤" class="wid100th">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-if="tabMaxA==1" v-model="form.projectParamindexList[0].brightnessMax"  ></el-input>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-if="tabMaxA==2" v-model="form.projectParamindexList[0].brightnessA"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥" class="wid100th">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].evenness"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td class="pingjun pingjun1 pingjun2">
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].bcBrightnessRatioMin"  ></el-input>
                                                            </el-form-item>
                                                            <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].bcBrightnessRatioMax"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                    <tr v-if="form.colorType == 2">
                                                        <td class="dwsddw">
                                                            <el-popover ref="popoverlh" placement="bottom" width="160" trigger="focus" popper-class="xiala">
                                                                <ul>
                                                                <li v-for="(item,index) in zidingyiColorList" :key="index" @click="setlh(item.dictCont)">{{item.dictCont}}</li>
                                                                </ul>
                                                            </el-popover>
                                                            <el-input v-model="form.projectParamindexList[0].colorTemperatureCustom" v-popover:popoverlh  ></el-input>
                                                        </td>
                                                        <td class="pingjun">
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessAvgMinCustom"  ></el-input>
                                                            </el-form-item>
                                                             <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].brightnessAvgMaxCustom"  ></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        
                                                    </tr>
                                                </table>
                                            </li>
                                        </ul>

                                        <!-- 不控光点光源-->
                                        <ul class="uls lianghua" v-else-if="currentContestType.contestTypeStr=='不控光点光源'">
                                            <li class="lt">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        量化指标
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="rt dgybkg">
                                                 <table >
                                                    <tr>
                                                        <th width="50">颜色</th>
                                                        <th>0°</th>
                                                        <th>上60°</th>
                                                        <th>下60°</th>
                                                        <th>左60°</th>
                                                        <th>右60°</th>
                                                    </tr>
                                                    <tr>
                                                        <td>全亮</td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].level0"   >
                                                                        <i slot="suffix" >cd</i>
                                                                </el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].verticalUp60"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].verticalDown60"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].levelLeft60"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].levelRight60"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                    <tr v-if="form.colorType == 2">
                                                        <td  width="100" class="bai">
                                                            <el-popover ref="popoverlh" placement="bottom" width="160" trigger="focus" popper-class="xiala">
                                                                <ul>
                                                                <li v-for="(item,index) in zidingyiColorList" :key="index" @click="setlh(item.dictCont)">{{item.dictCont}}</li>
                                                                </ul>
                                                            </el-popover>
                                                            <el-input v-model="form.projectParamindexList[0].colorTemperatureCustom" v-popover:popoverlh  class="bai"></el-input>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥" class="bai">
                                                                <el-input oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].level0Custom" ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </li>
                                        </ul>
                                        <!-- 控光点光源-->
                                        <ul class="uls lianghua" v-else-if="currentContestType.contestTypeStr=='控光点光源'">
                                            <li class="lt">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        量化指标
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="rt">
                                                 <table >
                                                    <tr>
                                                        <th width='60'>颜色</th>
                                                        <th>0°</th>
                                                        <th>上30°</th>
                                                        <th>下60°</th>
                                                        <th>左60°</th>
                                                        <th>右60°</th>
                                                    </tr>
                                                    <tr>
                                                        <td width='60'>全亮</td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].level0"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    
                                                            <td class="pingjun pingjun1">
                                                            <el-form-item>
                                                                <el-input  maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].verticalUp30"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                             <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].verticalUp30Max"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].verticalDown60"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].levelLeft60"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].levelRight60"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                    <tr v-if="form.colorType == 2">
                                                        <td width="100">
                                                            <el-popover ref="popoverlh" placement="bottom" width="160" trigger="focus" popper-class="xiala">
                                                                <ul>
                                                                <li v-for="(item,index) in zidingyiColorList" :key="index" @click="setlh(item.dictCont)">{{item.dictCont}}</li>
                                                                </ul>
                                                            </el-popover>
                                                            <el-input v-model="form.projectParamindexList[0].colorTemperatureCustom" v-popover:popoverlh  ></el-input>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥" class="bai">
                                                                <el-input oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].level0Custom"><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </li>
                                        </ul>
                                        <!-- 远视点光源-->
                                        <ul class="uls lianghua" v-else-if="currentContestType.contestTypeStr=='远视点光源'">
                                            <li class="lt">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        量化指标
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="rt">
                                                 <table >
                                                    <tr>
                                                        <th width="60">颜色</th>
                                                        <th>上30°</th>
                                                        <th>下45°</th>
                                                        <th>下10°</th>
                                                        <th>下10°左60°</th>
                                                        <th>下10°右60°</th>
                                                    </tr>
                                                    <tr>
                                                        <td>全亮</td>
                                                        <td class="pingjun pingjun1">
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].verticalUp30"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                             <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].verticalUp30Max"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td class="pingjun pingjun1">
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].down45"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                             <span class="xias">~</span> 
                                                            <el-form-item>
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].down45Max"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].verticalDown10"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input  maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].vertical10Left60"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥">
                                                                <el-input maxlength="10" oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].vertical10Right60"  ><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                    <tr v-if="form.colorType == 2">
                                                        <td>
                                                            <el-popover ref="popoverlh" placement="bottom" width="160" trigger="focus" popper-class="xiala">
                                                                <ul>
                                                                <li v-for="(item,index) in zidingyiColorList" :key="index" @click="setlh(item.dictCont)">{{item.dictCont}}</li>
                                                                </ul>
                                                            </el-popover>
                                                            <el-input v-model="form.projectParamindexList[0].colorTemperatureCustom" v-popover:popoverlh  ></el-input>
                                                        </td>
                                                        <td>
                                                        </td>
                                                        <td>
                                                        </td>
                                                        <td>
                                                            <el-form-item label="≥" class="bai">
                                                                <el-input oninput="value=value.replace(/[^\d^\.]/g,'')" @input="checkLiangIntegerTwo" v-model="form.projectParamindexList[0].verticalDown10Custom"><i slot="suffix" >cd</i></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </li>
                                        </ul>

                                        <ul class="uls">
                                           <li class="lt">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        效果描述
                                                    </div>
                                                </div>
                                           </li>
                                           <li class="rt">
                                               <el-popover ref="popoverEffect" placement="bottom" trigger="focus" popper-class="xiala xialas2">
                                                    <ul class="ulSte">
                                                        <li v-for="item in xiaoguomiaoshuList" @click="setPopoverEffect(item)" v-html="item.dictCont"></li>
                                                    </ul>
                                                </el-popover>                                             
                                                <el-input type="textarea" v-model="form.effectDescription" @input="effectDescriptionTextBlur" v-popover:popoverEffect class="dex"></el-input>
                                           </li>
                                        </ul>
                                        <ul>
                                            <li class="title">设备需求</li>
                                            <li class="cd1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        光源类型
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd2">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        <el-input v-model="form.lightType"></el-input>
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd1 int1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        工作电压
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd2 int2" style="padding-top:6px;">
                                                <el-popover ref="popoverWorkVoltage" placement="bottom" width="124" trigger="focus" popper-class="xiala dianya">
                                                    <ul>
                                                    <li v-for="item in gongzuodianyaList" @click="setWorkVoltage(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>
                                                <el-input v-model="form.workVoltage" class="e4y" @input="workVoltageTextBlur" v-popover:popoverWorkVoltage><i slot="suffix">V</i></el-input>
                                            </li>
                                            <li class="cd1 int1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        灯具功率
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd2 int2 int3">
                                                <div class="div2">
                                                <el-form-item label="≤" class="e5y">
                                                        <el-input  v-model="form.lampPower" v-on:input="checkPower" @input="blurPower"><i slot="suffix">W</i></el-input>
                                                    </el-form-item>
                                                </div>
                                            </li>
                                            <li class="cd1  int1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        安装方向
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd2 int2 fangx">
                                                <el-popover ref="popoverInstallDirection" placement="bottom" width="120" trigger="focus" popper-class="xiala">
                                                    <ul>
                                                    <li v-for="item in anzhuangfangxiangList" @click="setInstallDirection(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>
                                                <el-input v-model="form.installDirection" @input="installDirectionTextBlur" v-popover:popoverInstallDirection></el-input>
                                            </li>
                                        </ul>
                                        <ul>
                                            <!-- 色温色彩 -->
                                            <li class="cd1"  v-if="currentColorType.dictExtra<=1"> 
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        色温色彩
                                                    </div>
                                                </div>
                                            </li>
                                            <!--单白 -->
                                            <template v-if="currentColorType.dictExtra==0">
                                            <template v-if="IsDanBaigt6500">
                                                <li class="cd2 int1" style="width:700px">
                                                    <div class="BoxTable">
                                                    <div class="BoxCell" style="width:auto">
                                                    <el-input v-if="form.id == null" v-model="form.colorTemperatureFirst" placeholder="色温"  @input="changeColorTemperature16500"></el-input>
                                                    <el-input v-else v-model="form.colorTemperatureStr" placeholder="色温"  @input="BlurColorTemperatureStrEditWhite"></el-input>
                                                    </div></div>
                                                </li>
                                            </template>
                                            <template v-else-if="IsDanBailt2700">
                                                <li class="cd2 int1" style="width:700px">
                                                    <div class="BoxTable">
                                                    <div class="BoxCell" style="width:auto">
                                                <el-input v-if="form.id == null" v-model="form.colorTemperatureFirst" placeholder="色温"  @input="changeColorTemperature12700"></el-input>
                                                <el-input v-else v-model="form.colorTemperatureStr" placeholder="色温"  @input="BlurColorTemperatureStrEditWhite"></el-input>
                                                </div></div>
                                                </li>
                                            </template>
                                            <template v-else>
                                            <li class="cd2 int1" style="width:700px" v-if="form.id == null">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                    <div class="de">
                                                        <el-popover ref="popovercolorTemperature1" placement="bottom" :disabled="disabledColorTemperature1" width="60" trigger="focus" popper-class="xiala">
                                                            <ul>
                                                            <li v-for="item in danbaiColorList" :key="item.id" @click='setpopovercolorTemperature1(item.dictCont)'>{{item.dictCont}}</li>
                                                            </ul>
                                                        </el-popover>
                                                        <el-input v-model="form.colorTemperatureFirst" placeholder="色温1" :disabled="disabledColorTemperature1" @input="changeColorTemperature1" v-popover:popovercolorTemperature1></el-input>
                                                    </div>
                                                    <div class="de">
                                                        <el-popover ref="popovercolorTemperature2" placement="bottom" :disabled="disabledColorTemperature2" width="60" trigger="focus" popper-class="xiala">
                                                            <ul>
                                                            <li v-for="item in danbaiColorList" :key="item.id" @click='setpopovercolorTemperature2(item.dictCont)'>{{item.dictCont}}</li>
                                                            </ul>
                                                        </el-popover>
                                                        <el-input v-model="form.colorTemperatureSecond" placeholder="色温2" :disabled="disabledColorTemperature2" @input="changeColorTemperature2" v-popover:popovercolorTemperature2></el-input>
                                                    </div>
                                                    <div class="de">
                                                        <el-popover ref="popovercolorTemperature3" placement="bottom" :disabled="disabledColorTemperature3" width="60" trigger="focus" popper-class="xiala">
                                                            <ul>
                                                            <li v-for="item in danbaiColorList" :key="item.id" @click='setpopovercolorTemperature3(item.dictCont)'>{{item.dictCont}}</li>
                                                            </ul>
                                                        </el-popover>
                                                        <el-input v-model="form.colorTemperatureThird" placeholder="色温3" :disabled="disabledColorTemperature3" @input="changeColorTemperature3" v-popover:popovercolorTemperature3></el-input>
                                                    </div>
                                                    <div class="de">
                                                        <el-popover ref="popovercolorTemperature4" placement="bottom" :disabled="disabledColorTemperature4" width="60" trigger="focus" popper-class="xiala">
                                                            <ul>
                                                            <li v-for="item in danbaiColorList" :key="item.id" @click='setpopovercolorTemperature4(item.dictCont)'>{{item.dictCont}}</li>
                                                            </ul>
                                                        </el-popover>
                                                        <el-input v-model="form.colorTemperatureFourth" placeholder="色温4" :disabled="disabledColorTemperature4" @input="changeColorTemperature4" v-popover:popovercolorTemperature4></el-input>
                                                    </div>
                                                </div>
                                                </div> 
                                            </li>
                                            <li class="cd2 int1" style="width:700px" v-else> <!--编辑单白时 -->
                                                <div class="BoxTable">
                                                    <div class="BoxCell" style="width:auto">
                                                        <el-popover ref="popovercolorTemperatureStr" placement="bottom" width="160" trigger="focus" popper-class="xiala">
                                                            <ul>
                                                                <li v-for="item in danbaiColorList" :key="item.id" @click='setpopovercolorTemperatureStrEditWhite(item)'>{{item.dictCont}}</li>
                                                            </ul>
                                                        </el-popover>
                                                        <el-input v-model="form.colorTemperatureStr" placeholder="色温" @input="BlurColorTemperatureStrEditWhite" v-popover:popovercolorTemperatureStr></el-input>
                                                    </div>
                                                </div>
                                            </li>
                                            </template>
                                            </template>
                                            <!--单色彩 -->
                                            <li class="cd2 int1" style="width:700px" v-if="currentColorType.dictExtra==1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell" style="width:auto">
                                                        <el-popover ref="popovercolorTemperatureStr" placement="bottom" width="160" trigger="focus" popper-class="xiala">
                                                            <ul>
                                                            <li v-for="item in dansecaiColorList" :key="item.id" @click='setpopovercolorTemperatureStr(item)'>{{item.dictCont}}</li>
                                                            </ul>
                                                        </el-popover>
                                                        <el-input v-model="form.colorTemperatureStr" placeholder="色温" v-popover:popovercolorTemperatureStr @input="BlurColorTemperatureStr"></el-input>
                                                    </div>
                                                </div>
                                            </li>
                                        </ul>
                                        <!--多颜色时 -->
                                        <ul class="uls" v-if="currentColorType.dictExtra>1">
                                            <li class="lt">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        色温色彩
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="rt">
                                                 <table v-show="isRGBmen" style="width:100%">
                                                    <tr v-for="(item,index) in moreChooseColorList" :key="index">
                                                        <td class="pingjun">
                                                            <span v-if="item.name !='W'">{{item.name}}</span>
                                                            <span v-else>
                                                            
                                                                <el-popover ref="popoverlist"  :id="'popover-'+index" placement="bottom" width="160" trigger="focus" popper-class="xiala">
                                                                    <ul v-if="currentContestType.contestTypeStr=='不控光点光源' || currentContestType.contestTypeStr=='控光点光源' || currentContestType.contestTypeStr=='远视点光源'">
                                                                        <li v-for="(j,i) in danbaiColorList" :key="i" @click="setColors1(item,j.dictCont,index)">{{j.dictCont}}</li>
                                                                    </ul>
                                                                    <ul v-else>
                                                                        <li v-for="(j,i) in mbColorList" :key="i" @click="setColors1(item,j.dictCont,index)">{{j.dictCont}}</li>
                                                                    </ul>
                                                                    
                                                                    <el-input slot="reference" v-model="item.colorTemperature" ></el-input>
                                                                </el-popover>
                                                            </span>
                                                        </td>
                                                        <td class="rgb">
                                                            <el-form-item>
                                                                ≤ <el-input :disabled="disabledSexPower(item.name)" v-model="item.colorPower" placeholder="单色功率"></el-input> W
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item>
                                                                <el-input v-model="item.colorCoordinate" placeholder="色坐标/色温/波长"></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                </table>
                                                <table v-show="!isRGBmen" style="width:100%">
                                                    <tr v-for="(item,index) in other234ColorList" :key="index">
                                                        <td class="pingjun">

                                                               <el-popover ref="popoverlist"  :id="'popover-'+index" placement="bottom" width="160" trigger="focus" popper-class="xiala">
                                                                    <ul>
                                                                        <li v-for="(j,i) in mbColorList" :key="i" @click="setColors2(item,j.dictCont,index)">{{j.dictCont}}</li>
                                                                    </ul>
                                                                    <el-input slot="reference" v-model="item.colorTemperature" ></el-input>
                                                                </el-popover>
                                                            
                                                        </td>
                                                        <td class="rgb">
                                                            <el-form-item>
                                                                ≤ <el-input v-model="item.colorPower" placeholder="单色功率"></el-input> W
                                                            </el-form-item>
                                                        </td>
                                                        <td>
                                                            <el-form-item>
                                                                <el-input v-model="item.colorCoordinate" placeholder="色坐标/色温/波长"></el-input>
                                                            </el-form-item>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </li>
                                        </ul>
                                        <ul>
                                            <li class="cd1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        灯具颜色
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd9">
                                                <el-popover ref="popoverLampColor" placement="bottom" trigger="focus" popper-class="xiala xialas">
                                                    <ul>
                                                        <li v-for="item in dengjuyanseList" @click="setPopoverLampColor(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>                                             
                                                <el-input v-model="form.lampColor" @input="lampColorTextBlur" v-popover:popoverLampColor></el-input>
                                            </li>
                                            <li class="cd1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        表面温度
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd9">
                                                <el-popover ref="popoverSurfaceTemperature" placement="bottom" trigger="focus" popper-class="xiala xialas">
                                                    <ul>
                                                    <li v-for="item in biaomianwenduList" @click="setPopoverSurfaceTemperature(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>                                       
                                                <el-input v-model="form.surfaceTemperature" @input="surfaceTemperatureTextBlur" v-popover:popoverSurfaceTemperature></el-input>
                                            </li>
                                            <li class="cd1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        防护等级
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd9">
                                                <el-popover ref="popoverProtectLevel" placement="bottom" trigger="focus" popper-class="xiala xialas">
                                                    <ul>
                                                    <li v-for="item in fanghudengjiList" @click="setPopoverProtectLevel(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>                                             
                                                <el-input v-model="form.protectLevel" @input="protectLevelTextBlur" v-popover:popoverProtectLevel></el-input>
                                            </li>
                                            <li class="cd1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        材质
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd9 cd99 ">
                                                <el-popover ref="popover1" placement="bottom" trigger="focus" popper-class="xiala xialas">
                                                    <ul>
                                                        <li v-for="item in caijidengticaizhiList" @click="setpopover1(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>                                             
                                                <el-input v-model="form.lampQuality" @input="lampQualityTextBlur" placeholder="灯体材质" v-popover:popover1></el-input>
                                                <el-popover ref="popover2" placement="bottom" trigger="focus" popper-class="xiala xialas">
                                                    <ul>
                                                        <li v-for="item in caijibiaomiancaizhiList" @click="setpopover2(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>                                             
                                                <el-input v-model="form.materialQuality" @input="materialQualityTextBlur" placeholder="表面材质" v-popover:popover2></el-input>
                                            </li>
                                            <li class="cd1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        安装方式
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd10">
                                                <el-popover ref="popover3" placement="bottom" trigger="focus" popper-class="xiala xialas">
                                                    <ul>
                                                        <li v-for="item in anzhuangfangshiList" @click="setpopover3(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>
                                                <el-input v-model="form.installType" @input="installTypeTextBlur" v-popover:popover3></el-input>
                                            </li>
                                            <li class="cd1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        重量
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd11">
                                                <el-form-item label="≤">
                                                    <el-input  v-model="form.weight"><i slot="suffix">kg</i></el-input>
                                                </el-form-item>
                                            </li>

                                            <template v-if="form.colorType == 2 && (form.lampType==229 || currentContestType.contestTypeStr=='不控光点光源' || currentContestType.contestTypeStr=='控光点光源' || currentContestType.contestTypeStr=='远视点光源')">
                                                <li class="cd1">
                                                    <div class="BoxTable">
                                                        <div class="BoxCell">
                                                            控制位数
                                                        </div>
                                                    </div>
                                                </li>
                                                <li class="cd12 cd111">
                                                    <el-select v-model="form.controlDigit">
                                                        <el-option v-for="item in controlDigitList" :key="item.id" :label="item.dictCont" :value="item.dictCont"></el-option>
                                                    </el-select>
                                                </li>
                                            </template>
                                            <li class="cd1 cd13">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        附件要求
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd12 cd13"> 
                                               <el-popover ref="popover4" placement="bottom" trigger="focus" popper-class="xiala xialas2">
                                                    <ul>
                                                        <li v-for="item in fujianyaoqiuList" @click="setpopover4(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>                                             
                                                <el-input v-model="form.attachDemand" @input="attachDemandTextBlur" v-popover:popover4 class="dex"></el-input>
                                            </li>
                                        </ul>
                                        <ul>
                                            <li class="title">控制需求</li>
                                            <li class="cd1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        是否带控
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd12"> 
                                                <el-form-item  prop="resource">
                                                    <el-radio-group v-model="form.isControl">
                                                        <el-radio :label="false">不带控</el-radio>
                                                        <el-radio :label="true">带控</el-radio>
                                                    </el-radio-group>
                                                </el-form-item>
                                            </li>
                                            <li class="cd1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        控制协议
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd12" v-if="form.isControl"> 
                                                <el-popover ref="popoverl1" placement="bottom" trigger="focus" popper-class="xiala xialas2">
                                                    <ul>
                                                        <li v-for="item in controlProtocol1List" @click="setpopoverl1(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>                                             
                                                <el-input style="width:200px" v-model="controlProtocol1" v-popover:popoverl1 class="dex" placeholder="控制协议"></el-input>
                                                <el-popover ref="popoverl2" placement="bottom" trigger="focus" popper-class="xiala xialas2">
                                                    <ul>
                                                        <li v-for="item in controlProtocol2List" @click="setpopoverl2(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>                                             
                                                <el-input style="width:200px;margin-left:10px" v-model="controlProtocol2" v-popover:popoverl2 class="dex" placeholder="控制段数"></el-input>
                                            </li>
                                            <li class="cd12" v-else> 
                                                /
                                            </li>

                                            <li class="cd1 cd15">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        动态效果
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd12 cd15" v-if="form.isControl"> 
                                                <el-popover ref="popover5" placement="bottom" width="800" trigger="focus" popper-class="xiala">
                                                    <ul>
                                                    <li v-for="item in dongtaixiaoguoList" @click="setpopover5(item)" v-html="item.dictCont"></li>
                                                    </ul>
                                                </el-popover>
                                                <!-- <div v-html="form.colorDemand"></div> -->
                                                <el-input type="textarea" v-model="form.colorDemand" @input="colorDemandTextBlur" v-popover:popover5></el-input>
                                            </li>
                                            <li class="cd12 cd15" v-else> 
                                                /
                                            </li>

                                            <li class="cd1 cd13 cd15">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        其他要求
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd12 cd13 cd15"> 
                                                <el-popover ref="popover6" placement="bottom" width="800" trigger="focus" popper-class="xiala">
                                                    <ul>
                                                    <li v-for="item in qitayaoqiuList" @click="setpopover6(item)">{{item.dictCont}}</li>
                                                    </ul>
                                                </el-popover>
                                                <el-input type="textarea" v-model="form.otherDemand" @input="otherDemandTextBlur" v-popover:popover6 class="dex"></el-input>
                                            </li>
                                        </ul>
                                        <ul style="height:30px">
                                            <!-- <li class="title">其它</li>
                                            <li class="cd1">
                                                <div class="BoxTable">
                                                    <div class="BoxCell">
                                                        推荐品牌
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="cd12 cd122"> 
                                                <el-form-item class="witd">
                                                    <el-select v-model="chooseLampBrand" multiple collapse-tags value-key="id">
                                                        <el-option v-for="item in lampBrandList" :key="item.id" :label="item.brandName" :value="item"></el-option>
                                                    </el-select>
                                                </el-form-item>
                                                
                                                <span v-for="(item,index) in chooseLampBrand" :key="item.id" @click="removeSelf(index)">{{item.brandName}}</span>
                                            </li> -->
                                            <li class="last">
                                                <el-form-item v-show="form.id != null && editStatus != 1">
                                                    <el-button @click="save(3)" type="primary">另存为</el-button>
                                                </el-form-item>
                                                <el-form-item v-show="form.id == null || lampparamUserIsCreateUser">
                                                    <el-button @click="save(1)" type="primary">暂存</el-button>
                                                </el-form-item>
                                                <el-form-item v-show="form.id == null || lampparamUserIsCreateUser">
                                                    <el-button @click="save(2)" type="primary">生成</el-button>
                                                </el-form-item>
                                            </li>
                                        </ul>
                                    </div>
                                </el-form>
                            </el-collapse-item>
                    </el-collapse>
                </div>
                <!--选择应用面示意图 -->
                <el-dialog title="选择应用面示意图" :visible.sync="isShowContestType" width="860px" v-dialogDrag class="iein" custom-class="xzyysyt">
                    <div class="wid100 sketchMap">
                        <div style="margin-bottom:20px"> 
                            <el-form :inline="true" class="demo-form-inline">
                            <el-form-item label="应用类型" prop="region">
                                <el-select v-model="currentcontestforTypeInfo" @change="changeContestTypeListforType" value-key="id">
                                    <el-option label="全部" value=""></el-option>
                                    <el-option v-for="item in contestTypeListforType" :key="item.id" :label="item.contestDescribe" :value="item"></el-option>
                                </el-select>
                                <el-select v-show="showChildList" v-model="currentcontestforTypeInfoChild" @change="changeContestTypeListforTypeChild" value-key="id">
                                    <el-option v-for="item in contestTypeListforTypeChild" :key="item.id" :label="item.contestDescribe" :value="item"></el-option>
                                </el-select>
                            </el-form-item>
                            <el-button v-show="!showFile1" @click="checkChild" type="primary">点击上传</el-button>
                            <el-upload
                                v-show="showFile1"
                                class="upload-demo1"
                                :headers ="headers"
                                    :action="uploadUrl"
                                    :show-file-list="false"
                                    :on-success="handleAvatarSuccess1"
                                    :before-upload="beforeAvatarUpload1">
                                <el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>
                        </el-form>
                            </div>
                        <el-row>
                            <el-col :span="8" :gutter="1" v-for="item in contestTypeList" :key="item.id" >
                                <div class="img_item"> <img @click="chooseContestType(item,false)" :src="ImgPath + item.sketchMapOriginal" alt=""></div>
                                <div class="img_item1" @click="chooseContestType(item,false)">{{item.contestDescribe}}</div></el-col>
                        </el-row>
                    </div>
                </el-dialog>
                <!--选择灯具示意图 -->
                <el-dialog title="选择灯具类型示意图" :visible.sync="isShowLampSketch" width="860px" v-dialogDrag class="iein" custom-class="xzyysyt">
                    <div class="wid100 sketchLamp">
                        <el-form :inline="true" class="demo-form-inline">
                            <el-form-item label="请选择灯具类型" prop="region">
                                <el-select v-model="currentLampType" @change="changeLampType" value-key="id">
                                    <!-- <el-option label="请选择" value=""></el-option> -->
                                    <el-option v-for="item in lampTypeList" :key="item.id" :label="item.dictCont" :value="item"></el-option>
                                </el-select>
                            </el-form-item>
                            <el-button v-show="!showFile2" @click="checkLamp" type="primary">点击上传</el-button>
                            <el-upload
                                v-show="showFile2"
                                class="upload-demo1"
                                :headers ="headers"
                                    :action="uploadUrl"
                                    :show-file-list="false"
                                    :on-success="handleAvatarSuccess2"
                                    :before-upload="beforeAvatarUpload2">
                                <el-button size="small" type="primary">点击上传</el-button>
                            </el-upload>
                        </el-form>
                        <div class="ShowLampSketch_list">
                            <ul class="deul">
                                <li v-for="item in lampSketchList" :key="item.id">
                                    <div class="imgs" @click="chooseLampSketch(item)"><img :src="ImgPath + item.sketchMapOriginal" alt=""></div>
                                    <p @click="chooseLampSketch(item)">{{item.lampDescribe}}</p>
                                </li>
                            </ul>
                            <el-pagination
                                @current-change="handleCurrentChange"
                                :current-page="lampTypePage"
                                :page-size="9"
                                layout="total, prev, pager, next, jumper"
                                :total="totalCountLamp">
                            </el-pagination>
                        </div>
                    </div>
                </el-dialog>
            </div>
         </div>
         </transition>
           <div class='layout-area' :class="leftshow == true ? 'active':''">
                <div @click='slide'>
                    <i v-if='leftshow' class="el-icon-d-arrow-left"></i>
                    <i  v-if='!leftshow' class="el-icon-d-arrow-right"></i>
                </div>
            </div>
      <div id='proxyDiv' class='layout-proxy' @mousedown.prevent='dragStart' :style='{left:proxyDomLeft}'>
         
      </div>
       <div id='centerDiv' class='layout-center' :style='{width:centerDomWid}'>
            <div class="custom_bg parameter">
               <div class="box90">
                   <div class="parameter_top">
                      
                           <div class="cont" v-show="chooselampBrandList.length>0"> 
                                <div class="title">品牌：</div> 
                                <div class="dee dee1">
                                    <span v-for="(item,index) in chooselampBrandList" :key="item.id" @click="removeSelf(index)">{{item.brandName}}</span>
                                    <i class="el-icon-close" @click="clearBrandList()"></i>
                                </div> 
                                
                            </div>
                       
                           <div class="cont" v-show="request.priceMax != '' || request.priceMin != ''">
                                <div class="title">参考价：</div> 
                                <div class="dee dee1">
                                    <span v-if="request.priceMin != '' && request.priceMax != ''">
                                        {{request.priceMin}} - {{request.priceMax}}
                                    </span>
                                    <span v-else-if="request.priceMin != ''">
                                        ≥ {{request.priceMin}}
                                    </span>
                                    <span v-else-if="request.priceMax != ''">
                                        ≤ {{request.priceMax}}
                                    </span>
                                    <i class="el-icon-close" @click="clearevenness()"></i>
                                </div>
                            </div>
                       
                    </div>  
                    <el-form :inline="true" class="demo-form-inline" id="dvfdf">
                        <div>
                            <el-form >
                            <div class="lt_sw">
                                 <div class="top" style="display: inline-block;margin-right: 10px;">
                                         <span @click="make()">
                                             <!-- <i class="el-icon-circle-plus-outline"></i> -->
                                          制作</span>
                                     </div>
                                <el-radio-group v-model="currentWeightButton">
                                    <el-radio-button label="" value="">默认排序</el-radio-button>
                                    <el-radio-button v-for="item in weightButtons" :key="item.id" :label="item.weightCode">{{item.weightName}}</el-radio-button>
                                </el-radio-group>
                                <el-popover placement="right" width="650" popper-class="shuju" trigger="click" v-model="showquanzhong">
                                    <div class="shuju_cont_list">
                                    <div class="font30">权重排序</div>
                                        <div class="wid100">
                                        <div class="shuju_cont_lt">
                                            <div class="img"><img src="@/assets/images/shuju.jpg" alt=""></div>
                                            <el-form-item label="功率" class="form1">
                                                <el-input v-model="request.powerWeight" @blur="changeWeightQuote()"></el-input>
                                            </el-form-item>
                                            <el-form-item label="价格" class="form2">
                                                <el-input v-model="request.priceWeight" @blur="changeWeightQuote()"></el-input>
                                            </el-form-item>
                                            <el-form-item label="平均亮度" class="form3" >
                                                <el-input v-model="request.lightnessAveWeight" @blur="changeWeightQuote()" :disabled="currentContestType.contestTypeStr=='不控光点光源' || currentContestType.contestTypeStr=='控光点光源' || currentContestType.contestTypeStr=='远视点光源'"></el-input>
                                            </el-form-item>
                                            <el-form-item label="亮度均匀度" class="form4">
                                                <el-input v-model="request.evennessWeight"  @blur="changeWeightQuote()" :disabled="currentContestType.contestTypeStr=='不控光点光源' || currentContestType.contestTypeStr=='控光点光源' || currentContestType.contestTypeStr=='远视点光源'"></el-input>
                                            </el-form-item>
                                            <el-form-item label="最小亮度" class="form5">
                                                <el-input v-model="request.lightnessWeight"  @blur="changeWeightQuote()" :disabled="currentContestType.contestTypeStr=='不控光点光源' || currentContestType.contestTypeStr=='控光点光源' || currentContestType.contestTypeStr=='远视点光源'"></el-input>
                                            </el-form-item>
                                            <el-form-item label="最大亮度" class="form6">
                                                <el-input v-model="request.lightnessMaxWeight"  @blur="changeWeightQuote()" :disabled="currentContestType.contestTypeStr=='不控光点光源' || currentContestType.contestTypeStr=='控光点光源' || currentContestType.contestTypeStr=='远视点光源'"></el-input>
                                            </el-form-item>
                                            <div class="tishi">权重可分配额：{{quota}}</div> 
                                            </div>
                                            <div class="shuju_cont_rt">
                                            <el-radio-group v-model="currentWeightButton">
                                                <el-radio-button v-for="item in weightButtons" :key="item.id" :label="item.weightCode">{{item.weightName}}</el-radio-button>
                                            </el-radio-group>
                                            </div>
                                        </div>
                                        <div class="submit"><el-button type="primary" @click="searchweight()">确定</el-button></div>
                                    </div>
                                    <el-button slot="reference" class="weight">自定义权重 <i class="el-icon-arrow-down"></i></el-button>
                                    </el-popover>
                                </div>
                               
                                 <div class="lt_sw2">
                                     <div class="lt_sw2S bukong_bom_list">
                                          <el-popover placement="top" trigger="click" width="610" v-model="showlampBrand">
                                            <el-button size="mini" type="text" class="desa" @click="showlampBrand = false">
                                                <i class="el-icon-close"></i>
                                            </el-button>
                                            <!-- 注释了，里面的数据没有调用 -->
                                            <div class="bukong_bom_list_search">
                                                <el-form-item>
                                                <el-input v-model="searchBrand" placeholder="请输入内容">
                                                    <i slot="prefix" class="el-input__icon el-icon-search"></i>
                                                </el-input>
                                                <button @click="ClickSearchBrand">搜索</button>
                                                </el-form-item>
                                            </div>
                                            <div class="bukong_bom_list_cont">
                                                <ul class="wid100">
                                                <li
                                                    v-for="(item, index) in lampBrandList"
                                                    :data-index="index"
                                                    @click="chooseBrand(item,index)"
                                                    :key="index"
                                                    :class="{'active': item.delFlag == '1'}">
                                                    <div class="imgs">
                                                    <div class="BoxTable">
                                                        <div class="BoxCell">
                                                            <img :src="ImgPath + item.brandLogo" >
                                                            <label class="el-upload-list__item-status-label"><i class="el-icon-upload-success el-icon-check"></i></label>
                                                        </div>
                                                    </div>
                                                    </div>
                                                    <p>{{item.brandName}}</p>
                                                </li>
                                                </ul>
                                            </div>
                                             <div class="redrt">*只提供会员品牌搜索</div> 
                                            <el-button slot="reference">品牌<i class="el-icon-arrow-down"></i></el-button>
                                        </el-popover>
                                     
                                    </div> 
                                    <div class="lt_sw2S"> 
                                        <el-popover placement="top" trigger="click"  popper-class="xiaoguo"  v-model="showlampBrand2">
                                            <el-form-item class="effect">
                                                <el-input v-model="request.priceMin" @blur="blurFixd2()"></el-input>
                                                <span class="line">-</span>
                                                <el-input v-model="request.priceMax" @blur="blurFixd2()"></el-input>
                                                <span>元</span>    
                                            </el-form-item>
                                            <el-button slot="reference">参考价<i class="el-icon-arrow-down"></i></el-button>
                                        </el-popover>
                                    </div>
                                    <el-form-item>
                                   
                                        <span v-for="(item,index) in DataTypeList" :key="index">
                                            <input type="checkbox"  v-model="chooseDataType" :label="item.label" :value="item.value" /> {{item.label}}
                                        </span>
                                    </el-form-item>
                                    <span class="list_S" style="cursor: pointer;"  @click="showSetDiv()">
                                        <el-tooltip class="item list_S" effect="dark" content="列表显示项" placement="top-start">
                                        <img src="@/assets/images/icon9_27.png" alt="列表显示项">
                                        </el-tooltip>
                                    </span>
                                     
                                       
                                    
                                </div>
                                
                            </el-form>
                            
                        </div>
                        <!-- 品牌 -->
                       

                    </el-form>
                    <div class="centerCont customHtml" >
                        <div class="table_Bom" >
                            <selectLampTable v-on:tableOver="tableOver" v-on:setTotalCount="setTotalCount" v-on:contrastShow="contrastShow" v-on:settableCheckbox="settableCheckbox" ref="lampTable"></selectLampTable>
                        </div>
                        <div style="text-align: right;margin-top:20px;color: #999999;" v-if="totalCount > 10">当前共计<span class='bolod'>{{totalCount}}</span>条数据符合条件，可缩小筛选范围</div>
                    </div>
                </div>
            </div>
       </div>
    
    <selectLampDetail ref="detail"></selectLampDetail>
    </div>
</template>
<script>
import selectLampDetail from '@/views/component/selectLampDetail.vue'
import selectLampTable from '@/views/component/selectLampTable.vue'
import $ from 'jquery'
import Swiper from 'swiper';
import 'swiper/dist/css/swiper.min.css';
import { isDate } from 'util';
import { match } from 'minimatch';
export default {
    data(){
        return{
            lampTypePage:1,
            searchBrand:'',
            chooselampBrandList:[],
            IsDanBaigt6500:false,
            IsDanBailt2700:true, //默认<2700
            editContestTypeStr:'',
            showlampBrand:false,
            showlampBrand2:false,
            showChildList:false,
            headers: {
                "Authorization": localStorage.getItem('token')
            },
            uploadUrl:'',
            showFile1:false,
            showFile2:false,
            currentcontestforTypeInfo:'',
            currentcontestforTypeInfoChild:{
                id:0,
                sketchAttrCoordinate:{

                }
            },
            bnhoswr:true,
            bnho2:true,
            sortRule:{prop:null,order:null},
            tabData:'', //table排序前的数据
            lampparamUserIsCreateUser:false,
            detailInfo:{ //详情模型
                contestDetection:{
                },
                contestStorageExaVo:{
                },
                storageContestDetectionList:[]
            },
            isFirst:false,
            tableHeight:200,
            dewde:500,
            showMorelistShow:false,
            totalCount:'0',
            totalCountLamp:0,
            qitayaoqiuList:[],
            dongtaixiaoguoList:[],
            fujianyaoqiuList:[],
            anzhuangfangshiList:[],
            caijibiaomiancaizhiList:[],
            biaomianwenduList:[],
            caijidengticaizhiList:[],
            fanghudengjiList:[],
            dengjuyanseList:[],
            anzhuangfangxiangList:[],
            gongzuodianyaList:[],
            showquanzhong:false, //权重弹窗
            quota:100,
            currentWeightButton:'', //当前选中权重按钮
            weightButtons:[], //权重按钮列表
            leftshow:true,
            layoutX:824,
            leftDomMargin:'0px',
            leftDomWidth:'824px',
            centerDomWid:'calc(100% - 40px -800px)',
            proxyDomLeft:'816px',
            disabledColorTemperature1:false,
            disabledColorTemperature2:false,
            disabledColorTemperature3:false,
            disabledColorTemperature4:false,
            tabMaxA:'1',
            currentColorType:{
                dictCont:''
            },
            currentContestType:{ //当前选中 应用面类型
                sketchAttr:{},
                sketchMapOriginal:'/static/real/images/201907/shiyitu.jpg',
            },
            currentLampSketch:{//当前选中 灯具示意图
                lampAttr:{},
                sketchMapOriginal:'/static/real/images/201907/shiyitu.jpg'
            }, 
            activeName: '1',
            isShowMenu1:false,
            isShowMenu:true,
            isShowContestType:false,
            isShowLampSketch:false,
            currentProject:{}, //当前项目信息 根
            editStatus:'',
            form:{
                securityFlag:true,
                detectionIds:'',
                customLampparmNo:'',
                grayDemand:'', //灯具色温色彩id
                priceWeight: '', //权重排序 价格
                anbanHeightWeight:'', //权重排序 暗斑高度
                evennessWeight:'', //权重排序 亮度均匀度
                lightnessMaxWeight: '', //权重排 序最大亮度
                lightnessWeight: '',  //权重排序 最小亮度
                lightnessAveWeight: '', //权重排序 平均亮度
                powerWeight: '',  //权重排序 功率
                powerNo:'',
                lampparamNo:'', //灯参编号
                projectId:'', //项目id
                colorType:'', //色彩
                angleNo:'', //光束角编号
                contestType:'',//应用面类型id
                contestSketchId:'', //应用面示意图id
                contestH:'', //h
                contestW:'', //w
                contestW1:'',//w1
                contestW2:'', //w2
                lumSize:'', //d
                lampType:'', //灯具类型id
                lampNo:'', //灯具类型编码
                lampSketchId:'', //灯具示意图id
                lampLong:'', //灯具长
                lampWidth:'', //灯具宽
                lampHeight:'', //灯具高
                albedo:'0.4', //反射率
                lumSizeMin:'',
                //量化指标 
                projectParamindexList:[
                    {
                        colorTemperatureStr:'全亮',
                        brightnessAvgMin:'', //平均亮度
                        brightnessAvgMax:'',
                        brightnessMax:'', //最大亮度
                        brightnessA:'',
                        brightnessMin:'', //最小亮度
                        bcBrightnessRatioMin:'',//bc之间
                        bcBrightnessRatioMax:'',
                        evenness:'', //均匀度
                        maculaHight:'', //暗斑高度
                        brightnessAvgMinCustom:'', //多色时 自定义的平均亮度
                        brightnessAvgMaxCustom:'',
                        colorTemperatureCustom:'', //多色自定义值

                        level0: '',
                        verticalUp60:'',
                        verticalDown60:'',
                        levelLeft60:'',
                        levelRight60:'',
                        verticalUp30Max:'',
                        verticalUp30:'',
                        verticalDown10:'',
                        vertical10Left60:'',
                        vertical10Right60:'',
                        down45:'',
                        down45Max:'',
                        level0Custom:'', //控光、不控光自定义

                        verticalDown10Custom:'', //远视点自定义

                        colorTemperature:'',
                        colorCoordinate:'', //色坐标
                        colorPower:'', //单色功率
                    }
                ],
                //效果描述
                effectDescription:'',
                // effectDescriptionText:'',
                lightType:'LED', //光源类型
                workVoltage:'', //工作电压
                // workVoltageText:'',
                lampPower:'' , // 灯具功率
                installDirection:'', //安装方向
                // installDirectionText:'',
                //色温色彩
                colorTemperatureFirst:'', //单白时 色温1
                colorTemperatureSecond:'',
                colorTemperatureThird:'',
                colorTemperatureFourth:'',
                colorTemperatureStr:'', //单色彩 色温
                colorTempeNo:'', //色温编号

                lampColor:'', //灯具颜色
                // lampColorText:'',
                surfaceTemperature:'', //表面温度
                // surfaceTemperatureText:'',
                protectLevel:'', //防护等级
                // protectLevelText:'',
                lampQuality:'', //灯体材质
                // lampQualityText:'',
                materialQuality:'', //表面材质 
                // materialQualityText:'',
                installType:'', //安装方式
                // installTypeText:'',
                weight:'', //重量
                glare:'', //眩光指标 text1|m外，眩光值|text2  1 2 5
                controlDigit:'', //控制类型 6 7 8
                attachDemand:'', //附件要求
                // attachDemandText:'',
                isControl:false, //是否带控

                colorDemand:'', //动态效果
                otherDemand:'', //其他要求
                recommendBrand:'', //推荐品牌
            },
            xiaoguomiaoshuList:[],
            glare1:'',
            glare2:'',
            controlProtocol1:'',
            controlProtocol2:'',
            AnglemapList:[],//光束角编号
            currentLampType:{
                id:0
            }, //灯具类型
            colorTypeList:[], //灯具色温色彩
            contestTypeListforType:[],//应用场景类型
            contestTypeListforTypeChild:[],
            contestTypeList:[], //应用面示意图列表
            lampSketchList:[], //灯具示意图
            lampTypeList:[], //灯具类型列表
            controlDigitList:[], //控制位数
            controlProtocol1List:[], //控制协议 1
            controlProtocol2List:[], //控制协议 2
            lampBrandList:[], //品牌列表
            chooseLampBrand:[],
            mbColorList:[], //选中 双色 其他三色 四色时的列表
            dansecaiColorList:[], //单色彩列表
            isRGBmen:false,
            moreChooseColorList:[
                {
                    name:'',
                    colorCoordinate:'', //色坐标
                    colorPower:'', //单色功率
                }
            ], //多色时 选中的颜色列表 最后要给projectParamindexList 赋值的
            other234ColorList:[
                {
                    colorTemperature:'', //下拉选择的名
                    colorCoordinate:'', //色坐标
                    colorPower:'', //单色功率
                }
            ],
            danbaiColorList:[],

            request:{
                lampIdsStr:'',
                page:1,
                rows:20,
                contestTypeId:'', //应用面
                dataTypeStr:'', //典型应用场景检测、项目检测、厂家标称值
                isAudit: 1, //审核通过的
                brandIds:'',//灯具品牌
                colorFlag:'', //
                dictIdLtype:'',//lamptype
                powerMax:'',

                sH:'', //search H
                sW:'',//search W
                sW1:'', //search sw1
                sW2:'', //search sw2
                lumSize:'', // search d
                lumSizeMax:'',

                priceMax:'',
                priceMin:'',

                longNs:'',//长
                widthNs:'',//宽
                heightNs: '', //高
                lightnessAveMin: '', //平均亮度min
                lightnessAveMax: '', //平均亮度max
                lightnessMaxMax:'', //最大亮度大值
                lightnessStart:'', //最小亮度
                evennessMin:'', //均匀度

                lightnessAveMinA:'',
                lightnessAveMaxA:'',
                lightnessMaxMaxA:'',
                lightnessStartA:'',
                evennessMinA:'',
                lightnessAveMinB:'',
                lightnessAveMaxB:'',
                lightnessMaxMaxB:'',
                lightnessStartB:'',
                evennessMinB:'',

                lightIntensity1:'', //>=0
                lightIntensity2:'',
                lightIntensity3Min:'',
                lightIntensity3Max:'',
                lightIntensity4:'',
                lightIntensity5:'',
                lightIntensity6Min:'',
                lightIntensity6Max:'',
                lightIntensity7:'',
                lightIntensity8:'',
                lightIntensity9:'',
                lightIntensity10:'',

                powerWeight: '',  //权重排序 功率
                lightnessAveWeight: '', //权重排序 平均亮度
                lightnessWeight: '',  //权重排序 最小亮度
                lightnessMaxWeight: '', //权重排 序最大亮度
                evennessWeight:'', //权重排序 亮度均匀度
                anbanHeightWeight:'', //权重排序 暗斑高度
                priceWeight: '', //权重排序 价格
            },
            checkboxModel:[],
            tableData:[],
            totalCount:0,
            chooseDataType:['1','2'], //典型 项目
            DataTypeList:[
            {
                label:'典型检测',
                value:'1'
            },
            {
                label:'项目检测',
                value:'2'
            }],
            chooseSearchLampBrand:[],
            showPicUrl:'',
            showPic:false
        }
    },
    components:{
        selectLampDetail,
        selectLampTable
    },
    computed:{
        //实时计算多色自定义下拉列表 
        //如果灯具色温色彩选中 RGB、RGBW、RGBA、RGBL，则值为 他们自己 如：R、G、B
        //如果选中的是双色、其他三色、其他四色 调取字典表sewen/secai
        zidingyiColorList:function(){
            var zidingyiList = []; 
            if(this.currentColorType.dictCont == "RGB" || this.currentColorType.dictCont == "RGBW" || this.currentColorType.dictCont == "RGBL" ||this.currentColorType.dictCont == "RGBA"){
                var temp = []
                var list = this.currentColorType.dictCont.split('')
                for(var i = 0;i<list.length;i++){
                    temp.push({
                        dictCont:list[i]
                    })
                }
                zidingyiList = temp;
            }else if(this.currentColorType.dictCont=="双色" || this.currentColorType.dictCont=="三色" || this.currentColorType.dictCont=="其他四色"){
                zidingyiList = this.mbColorList
            }
            return zidingyiList;
        }
    },
    watch:{
        tabMaxA:function(val,old){
            if(val == 2){
                this.form.projectParamindexList[0].brightnessMax = ''
            }else{
                this.form.projectParamindexList[0].brightnessA = ''
            }
        },
        "request.priceMin":function(val,old){
            this.search()
        },
        "request.priceMax":function(val,old){
            this.search()
        },
        "form.isControl":function(val,oldval){
            if(val == false){
                //清空controlProtocol
                this.controlProtocol1 = ''
                this.controlProtocol2 = ''
                this.form.colorDemand = ''
                this.form.controlProtocol = ''
            }
        },
        "form.lampparamNo":function(val,oldval){
        },
        //选择权重按钮 设置默认权重值 并搜索
        currentWeightButton:function(val){
            let self = this
            if(val != ''){
                for(var i = 0;i<this.weightButtons.length;i++){
                    var item = this.weightButtons[i];
                    if(item.weightCode == val){
                        self.request.priceWeight = item.price
                        self.request.evennessWeight = item.evenness
                        self.request.lightnessMaxWeight = item.lightnessMax
                        self.request.lightnessWeight = item.lightnessMin
                        self.request.lightnessAveWeight =item.lightnessAve
                        self.request.powerWeight = item.powerValue
                    }
                }
            }else{
                    self.request.priceWeight = ''
                    self.request.evennessWeight = ''
                    self.request.lightnessMaxWeight = ''
                    self.request.lightnessWeight = ''
                    self.request.lightnessAveWeight = ''
                    self.request.powerWeight = ''
            }
            this.changeWeightQuote()
            this.searchweight()
        },
        chooseLampBrand:function(val){
            var temp = ''
            for(var i = 0;i<this.chooseLampBrand.length;i++){
                temp += this.chooseLampBrand[i].id + ","
            }
            temp = temp.substring(0,temp.length-1)
            this.form.recommendBrand = temp
        },
        glare1:function(val){
            this.form.glare = this.glare1 + "|m外，眩光值|" + this.glare2
        },
        glare2:function(val){
            this.form.glare = this.glare1 + "|m外，眩光值|" + this.glare2
        },
        controlProtocol1:function(val){
            if(this.controlProtocol1 != ''){
                this.form.controlProtocol = this.controlProtocol1
            }
            if(this.controlProtocol2 != ''){
                this.form.controlProtocol = this.controlProtocol2
            }
            if(this.controlProtocol1 != '' && this.controlProtocol2 != ''){
                this.form.controlProtocol = this.controlProtocol1 +","+ this.controlProtocol2
            }
        },
        controlProtocol2:function(val){
            if(this.controlProtocol1 != ''){
                this.form.controlProtocol = this.controlProtocol1
            }
            if(this.controlProtocol2 != ''){
                this.form.controlProtocol = this.controlProtocol2
            }
            if(this.controlProtocol1 != '' && this.controlProtocol2 != ''){
                this.form.controlProtocol = this.controlProtocol1 +","+ this.controlProtocol2
            }
        },
        //切换典型 检测 重新搜索
        chooseDataType:function(val,old){
            this.search(1)
        },
    },
    methods:{
         handleScroll(e){     
              var scrollTop = e.target.documentElement.scrollTop || e.target.body.scrollTop;      // 执行代码
              var iiu =$(window).height() - $('.footer').offset().top + $(window).scrollTop();
              $(".last").css('bottom',iiu)
             
         },
        handleCurrentChange(page){
            this.loadLampSketchList(page)
        },
        handleCommand(command) {
            this.$message('click on item ' + command);
        },
        blurFixd2(){

            var priceMin = this.request.priceMin
            var priceMax = this.request.priceMax

            if(priceMin != "" && !isNaN(priceMin)){
                this.request.priceMin = parseFloat(priceMin).toFixed(2)
            }else{
                this.request.priceMin = ''
            }

            if(priceMax != "" && !isNaN(priceMax)){
                this.request.priceMax = parseFloat(priceMax).toFixed(2)
            }else{
                this.request.priceMax = ''
            }
            
        },
        clearevenness(){
            this.request.priceMin = ''
            this.request.priceMax = ''
            this.search()
        },
        ClickSearchBrand(){
            var search = this.searchBrand.toLowerCase()
            if(search){
            this.lampBrandList = this.lampBrandListBak.filter(function(item) {
                    return item.brandName.toLowerCase().indexOf(search) > -1
                    })
            }else{
            this.lampBrandList = this.lampBrandListBak
            }
        },
        clearBrandList(){
            this.chooselampBrandList=[]
            this.form.brandIds = ''
            for(var i = 0;i<this.lampBrandList.length;i++){
                this.lampBrandList[i].delFlag = "0"
            }
            this.request.brandIds = ''
            this.search()
        },
        chooseBrand: function(item,index) {
            if(item.delFlag == '1'){
                this.lampBrandList[index].delFlag= "0"
            }else{
                this.lampBrandList[index].delFlag= "1"
            }
            var tempList = []
            let tempval = '';
            for(var i = 0;i<this.lampBrandListBak.length;i++){
                if(this.lampBrandListBak[i].delFlag == "1"){
                tempval+=this.lampBrandListBak[i].id + ","
                tempList.push(this.lampBrandListBak[i])
                }
            }
            // for(var i = 0;i<this.lampBrandList.length;i++){
            //   if(this.lampBrandList[i].delFlag == "1"){
            //     tempval+=this.lampBrandList[i].id + ","
            //     tempList.push(this.lampBrandList[i])
            //   }
            // }
            tempval=tempval.substr(0,tempval.length-1)
            this.request.brandIds = tempval
            this.chooselampBrandList=tempList
            this.search()
        },
        pingpai(){
            this.showlampBrand = true
        },
        showLampDialog(){
            this.isShowLampSketch = true
            this.uploadUrl = this.$http.getSignUrl('/api/files/upload',{type:'image'})
        },
        checkChild(){
            if(this.currentcontestforTypeInfoChild.id == 0){
                this.$message.error("请选择二级下拉菜单！")
            }else{
                this.showFile1 = true
            }
        },
        checkLamp(){
            if(this.form.lampType == ''){
                this.$message.error("请选择灯具类型！")
            }else{
                this.showFile2 = true
            }
        },
        showcontestTypeDialog(){
            this.isShowContestType = true
            this.uploadUrl = this.$http.getSignUrl('/api/files/upload',{type:'image'})
        },
        handleAvatarSuccess1(res, file) {
            if(res.success){
                this.currentContestType = {sketchAttr:{}}
                this.form.contestSketchPath = res.data.savePath
                this.form.contestSketchId = '' //清空
                this.isShowContestType = false //关闭弹窗
                this.currentContestType.sketchMapOriginal = res.data.savePath //显示图片
                this.currentContestType.contestTypeStr = this.currentcontestforTypeInfoChild.contestTypeStr //显示名字
                this.form.makingWay = 1 
                this.form.contestType = this.currentcontestforTypeInfoChild.contestTypeIds

                this.initContestTypeInfo(false)
            }
        },
        initContestTypeInfo(flag){
            if(this.currentContestType.contestTypeStr=='窗框' || this.currentContestType.contestTypeStr=='复合面'){
                this.form.projectParamindexList=[
                    {
                        colorTemperatureStr:'全亮',
                        faceType:'A',
                        brightnessAvgMin:'', //平均亮度
                        brightnessAvgMax:'',
                        brightnessMax:'', //最大亮度
                        brightnessA:'',
                        brightnessMin:'', //最小亮度
                        evenness:'', //均匀度
                        maculaHight:'', //暗斑高度
                        brightnessAvgMinCustom:'', //多色时 自定义的平均亮度
                        brightnessAvgMaxCustom:'',
                        colorTemperatureCustom:'', //多色自定义值

                        level0: '',
                        verticalUp60:'',
                        verticalDown60:'',
                        levelLeft60:'',
                        levelRight60:'',
                        verticalUp30Max:'',
                        verticalUp30:'',
                        verticalDown10:'',
                        vertical10Left60:'',
                        vertical10Right60:'',
                        down45:'',
                        down45Max:'',
                    },
                    {
                        faceType:'B',
                        colorTemperatureStr:'全亮',
                        brightnessAvgMin:'', //平均亮度
                        brightnessAvgMax:'',
                        brightnessMax:'', //最大亮度
                        brightnessA:'',
                        brightnessMin:'', //最小亮度
                        evenness:'', //均匀度
                        maculaHight:'', //暗斑高度
                        brightnessAvgMinCustom:'', //多色时 自定义的平均亮度
                        brightnessAvgMaxCustom:'',
                        colorTemperatureCustom:'', //多色自定义值

                        level0: '',
                        verticalUp60:'',
                        verticalDown60:'',
                        levelLeft60:'',
                        levelRight60:'',
                        verticalUp30Max:'',
                        verticalUp30:'',
                        verticalDown10:'',
                        vertical10Left60:'',
                        vertical10Right60:'',
                        down45:'',
                        down45Max:'',
                    },
                ]
            }else{
                this.form.projectParamindexList=[
                    {
                        colorTemperatureStr:'全亮',
                        brightnessAvgMin:'', //平均亮度
                        brightnessAvgMax:'',
                        brightnessMax:'', //最大亮度
                        brightnessA:'',
                        brightnessMin:'', //最小亮度
                        evenness:'', //均匀度
                        maculaHight:'', //暗斑高度
                        brightnessAvgMinCustom:'', //多色时 自定义的平均亮度
                        brightnessAvgMaxCustom:'',
                        colorTemperatureCustom:'', //多色自定义值

                        level0: '',
                        verticalUp60:'',
                        verticalDown60:'',
                        levelLeft60:'',
                        levelRight60:'',
                        verticalUp30Max:'',
                        verticalUp30:'',
                        verticalDown10:'',
                        vertical10Left60:'',
                        vertical10Right60:'',
                        down45:'',
                        down45Max:'',
                        level0Custom:'',
                        verticalDown10Custom:'',
                    }
                ]
            }
            this.form.contestH = ''
            this.form.contestW = ''
            this.form.contestW1 = ''
            this.form.contestW2 = ''
            this.form.lumSize = ''
            this.form.lumSizeMin = ''
            if(!flag){
                this.getWeightDefaultButton()
                this.search(1)
            }
        },
        handleAvatarSuccess2(res, file) {
            if(res.success){
                this.form.lampSketchId = '' //清空
                this.form.lampSketchPath = res.data.savePath
                this.isShowLampSketch = false
                this.currentLampSketch.sketchMapOriginal = res.data.savePath
                this.currentLampSketch.lampAttr.L = true
                this.currentLampSketch.lampAttr.W = true
                this.currentLampSketch.lampAttr.D = true
            }
        },
        beforeAvatarUpload1(file) {
            const isJPG = file.type === 'image/jpeg';
            const isLt2M = file.size / 1024 / 1024 < 2;
            
            if (!isJPG) {
            this.$message.error('上传头像图片只能是 JPG 格式!');
            }
            if (!isLt2M) {
            this.$message.error('上传头像图片大小不能超过 2MB!');
            }
            return isJPG && isLt2M;
        },
        beforeAvatarUpload2(file) {
            const isJPG = file.type === 'image/jpeg';
            const isLt2M = file.size / 1024 / 1024 < 2;

            if (!isJPG) {
            this.$message.error('上传头像图片只能是 JPG 格式!');
            }
            if (!isLt2M) {
            this.$message.error('上传头像图片大小不能超过 2MB!');
            }
            return isJPG && isLt2M;
        },
        bnhos(){
            this.bnhoswr = !this.bnhoswr
        },
         bnhos2(){
            this.bnho2 = !this.bnho2;
        },
        checkboxT(row){
            if(row.surfaceType=="B"){
                return 0;
            }else{
                return 1;
            }
        },
        
        tableOver(){
        },
        setTotalCount(data){
            this.tableData = data.tableData
            this.totalCount = data.totalCount
        },
        contrastShow(row) {
            this.$refs.detail.show(row.id)
        },
        setpopoverl1(item){
             this.controlProtocol1 = item.dictCont
             this.$refs.popoverl1.doClose()
        },
        setpopoverl2(item){
             this.controlProtocol2 = item.dictCont
             this.$refs.popoverl2.doClose()
        },
        checkLiangIntegerTwo(e){
            // e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
            this.form.securityFlag = false
            this.search(1)
        },
        blurPower(){
            if(this.form.lampPower != null && this.form.lampPower != ""){
                if(isNaN(this.form.lampPower)){
                    this.form.lampPower = ''
                }else{
                    var temp = this.form.lampPower
                    if(temp.toString().indexOf('.') > -1){
                        this.form.lampPower = parseFloat(temp).toFixed(1)
                    }
                }
            }
        },
        checkPower(){
            if(this.form.lampPower != null && this.form.lampPower != "" && !isNaN(this.form.lampPower) && this.form.lampType != '' ){
                // this.form.lampPower = parseFloat(this.form.lampPower).toFixed(1)
                let self = this
                this.$http.postQuery('/api/lampparams/lamps/getPowerNo',{lampType:self.form.lampType,powerValue:self.form.lampPower},function(res){
                    if(res.success){
                        self.form.powerNo = res.data.powerNo
                        self.generateLampParamNo()
                    }
                }) //加个blur  只能输入1位小数 提交的时候也验证一下是否是数字
            }
             this.form.securityFlag = false
            this.search(1)
        },
        blurAlbedo(){
            this.form.securityFlag = false
            this.search(1)
        },
        checkIntegerTwo(){
            var contestH = this.form.contestH
            var contestW = this.form.contestW
            var contestW1 = this.form.contestW1
            var contestW2 = this.form.contestW2
            var lumSizeMin = this.form.lumSizeMin
            var lumSize = this.form.lumSize
            // if(contestH != null && contestH != "" && !isNaN(contestH)){
            //     this.form.contestH = parseFloat(contestH).toFixed(2)
            // }else{
            //     this.form.contestH = ''
            // }
            // if(contestW != null && contestW != "" && !isNaN(contestW)){
            //     this.form.contestW = parseFloat(contestW).toFixed(2)
            // }else{
            //     this.form.contestW = ''
            // }
            // if(contestW1 != null && contestW1 != "" && !isNaN(contestW1)){
            //     this.form.contestW1 = parseFloat(contestW1).toFixed(2)
            // }else{
            //     this.form.contestW1 = ''
            // }
            // if(contestW2 != null && contestW2 != "" && !isNaN(contestW2)){
            //     this.form.contestW2 = parseFloat(contestW2).toFixed(2)
            // }else{
            //     this.form.contestW2 = ''
            // }
            // if(lumSize != null && lumSize != "" && !isNaN(lumSize)){
            //     this.form.lumSize = parseFloat(lumSize).toFixed(2)
            // }else{
            //     this.form.lumSize = ''
            // }

            // if(lumSizeMin != null && lumSizeMin != "" && !isNaN(lumSizeMin)){
            //     this.form.lumSizeMin = parseFloat(lumSizeMin).toFixed(2)
            // }else{
            //     this.form.lumSizeMin = ''
            // }
            var lampLong = this.form.lampLong
            var lampWidth = this.form.lampWidth
            var lampHeight = this.form.lampHeight
            
            // if(lampLong != null && lampLong != "" && !isNaN(lampLong)){
            //     this.form.lampLong = parseInt(lampLong)
            // }else{
            //     this.form.lampLong = ''
            // }
            // if(lampWidth != null && lampWidth != "" && !isNaN(lampWidth)){
            //     this.form.lampWidth = parseInt(lampWidth)
            // }else{
            //     this.form.lampWidth = ''
            // }
            // if(lampHeight != null && lampHeight != "" && !isNaN(lampHeight)){
            //     this.form.lampHeight = parseInt(lampHeight)
            // }else{
            //     this.form.lampHeight = ''
            // }

            this.form.securityFlag = false
            this.search(1)
        },
      
        setColors1(item,value,index){
             item.colorTemperature = value
             this.$set(this.moreChooseColorList,index,item);
             for(var i = 0;i<this.$refs.popoverlist.length;i++){
                 this.$refs.popoverlist[i].doClose()
             }
        },
        setColors2(item,value,index){
             item.colorTemperature = value
             this.$set(this.other234ColorList,index,item);
             for(var i = 0;i<this.$refs.popoverlist.length;i++){
                 this.$refs.popoverlist[i].doClose()
             }
        },
        setlh(item){
             this.$refs.popoverlh.doClose()
             this.form.projectParamindexList[0].colorTemperatureCustom = item
             this.$set(this.form.projectParamindexList,0,this.form.projectParamindexList[0])
        },
        setlhs(item){
            this.$refs.popoverlh.doClose()
            this.form.projectParamindexList[0].colorTemperatureCustom = item
            this.form.projectParamindexList[1].colorTemperatureCustom = item

             this.$set(this.form.projectParamindexList,0,this.form.projectParamindexList[0])
             this.$set(this.form.projectParamindexList,1,this.form.projectParamindexList[1])
        },
        disabledSexPower(name){
            if(this.form.projectParamindexList.length > 0){
                var other = this.form.projectParamindexList[0].colorTemperatureCustom
                if(other != null && other != ''){
                    return other != name
                }
                else{
                    return false
                }
            }
        },
         changeAngleNo(){
             this.generateLampParamNo();
         },
        getWeightDefaultButton(){
            let self = this
            var contestFrontId = this.currentContestType.contestFrontId
            if(contestFrontId == null){
                contestFrontId = this.currentcontestforTypeInfoChild.parentId
            }
            if(contestFrontId != null){
                this.$http.get('/api/contests/defaultWeightJson/'+contestFrontId,{contestFrontId:contestFrontId},function(res){
                    self.weightButtons = res.data
                })
            }
        },
        slide(){
            this.leftshow = !this.leftshow;
            let that = this;
            if(!this.leftshow){ //隐藏左侧div
            that.proxyDomLeft = -that.layoutX + 'px';
            that.leftDomMargin = -that.layoutX + 'px';
            that.centerDomWid = 'calc(100% - 20px)';

            }else{
            setTimeout(function(){
                that.proxyDomLeft = that.layoutX + 'px';
                that.leftDomMargin = '0px';
                that.centerDomWid = 'calc(100% - 20px - '+that.layoutX+'px)';
            },30)
            
            }
        },
        /*拖拽*/
        dragStart(e){
            let that = this;//保存this到that
            e.target.style.opacity = .8;
            /*当鼠标在拖动div按下时绑定鼠标移动事件*/
            document.onmousemove = function(event){
            that.proxyDomLeft = event.clientX + 'px';
            //拖动时更改代理div的位置，跟随鼠标运动
            }
            document.onmouseup = function(event){
            that.layoutX = event.clientX; //保存鼠标抬起的位置，
            e.target.style.opacity = 0; //代理div不可见
            that.leftDomWidth = event.clientX + 'px';
            that.centerDomWid = 'calc(100% - 20px - '+event.clientX+'px)';
            //还原事件
            document.onmousemove = null;
            document.onmouseup = null;
            }
        },
        settableCheckbox(val){
            this.checkboxModel = val
        },
        generateLampParamNo(){
            //功率
            var power = ''
            if(this.form.lampPower != ''){
                
                // if(this.currentLampSketch.lampTypeStr == '点光源' || this.currentLampSketch.lampTypeStr == '瓦楞灯' || this.currentLampSketch.lampTypeStr == '台阶灯'){
                //     if(this.form.lampPower+''.indexOf('.') > -1){
                //         power = Math.ceil(this.form.lampPower)
                //     }else{
                //         power = Math.ceil(this.form.lampPower)
                //     }
                // }else{
                //     if(this.form.lampPower > 0){
                //         power = (this.form.lampPower / 10)
                //         power = Math.ceil(power)
                //     }
                // }
                power = this.form.powerNo
            }
            // this.form.powerNo = power

            var sewen = ''
            var isDanbai = false
            //单白
            if(this.currentColorType.dictExtra==0){
                sewen = this.form.colorTempeNo
                isDanbai = true
            }else if(this.currentColorType.dictExtra==1){ //单色彩
                sewen = this.form.colorTempeNo
            }else{
                //其他取  dictRemark
                sewen = this.currentColorType.dictRemark
            }
            if(!isDanbai){
                this.form.lampparamNo = this.form.lampNo + this.form.angleNo + sewen + power
            }else if(sewen != ''){
                var sp = sewen.split('-')
                var nos = ''
                for(var i = 0;i<sp.length;i++){
                    nos += this.form.lampNo + this.form.angleNo + sp[i] + power + '/'
                }
                this.form.lampparamNo = nos.substring(0,nos.length-1)
            }else{
                this.form.lampparamNo = this.form.lampNo + this.form.angleNo + power
            }
        },
        BlurColorTemperatureStr(){
            //用户自定义编辑 colorTempNo 设置为X
            this.form.colorTempeNo = 'X'
        },
        setpopovercolorTemperatureStrEditWhite(val){
            this.$refs.popovercolorTemperatureStr.doClose()
            this.form.colorTemperatureStr = val.dictCont
            this.BlurColorTemperatureStrEditWhite()
        },
        BlurColorTemperatureStrEditWhite(){
            if(this.form.colorTemperatureStr != "" && !isNaN(this.form.colorTemperatureStr)){
                this.form.colorTemperatureStr = parseInt(this.form.colorTemperatureStr)
            }else{
                this.form.colorTemperatureStr = ''
            }
            
            this.form.colorTempeNo = this.getColorCodeByValue(this.form.colorTemperatureStr)

            this.generateLampParamNo()

        },
        setpopovercolorTemperatureStr(val){
            this.$refs.popovercolorTemperatureStr.doClose()
            this.form.colorTemperatureStr = val.dictCont
            if(val.dictExtra){
                this.form.colorTempeNo = val.dictExtra
            }
            this.generateLampParamNo()
        },
        setpopovercolorTemperature1(val){
            this.$refs.popovercolorTemperature1.doClose()
            this.form.colorTemperatureFirst = val
            this.changeColorTemperature1()
        },
        setpopovercolorTemperature2(val){
            this.$refs.popovercolorTemperature2.doClose()
            this.form.colorTemperatureSecond = val
            this.changeColorTemperature2()
        },
        setpopovercolorTemperature3(val){
            this.$refs.popovercolorTemperature3.doClose()
            this.form.colorTemperatureThird = val
            this.changeColorTemperature3()
        },
        setpopovercolorTemperature4(val){
            this.$refs.popovercolorTemperature4.doClose()
            this.form.colorTemperatureFourth = val
            this.changeColorTemperature4()
        },
        changeColorTemperature16500(){
            if(this.form.colorTemperatureFirst != "" && !isNaN(this.form.colorTemperatureFirst) && this.form.colorTemperatureFirst > 6000){
                this.form.colorTemperatureFirst = parseInt(this.form.colorTemperatureFirst)
            }else{
                this.form.colorTemperatureFirst = ''
            }
            
            this.generateColorTempNo()
        },
        changeColorTemperature12700(){
            if(this.form.colorTemperatureFirst != "" && !isNaN(this.form.colorTemperatureFirst) && this.form.colorTemperatureFirst < 2700){
                this.form.colorTemperatureFirst = parseInt(this.form.colorTemperatureFirst)
            }else{
                this.form.colorTemperatureFirst = ''
            }

            this.generateColorTempNo()
        },
        changeColorTemperature1(){
            if(this.form.colorTemperatureFirst != "" && !isNaN(this.form.colorTemperatureFirst)){
                this.form.colorTemperatureFirst = parseInt(this.form.colorTemperatureFirst)
            }else{
                this.form.colorTemperatureFirst = ''
            }
            //如果选择的值 小于2700 或大于5000 只可有这一个值
            if(this.form.colorTemperatureFirst != '' && (this.form.colorTemperatureFirst < 2700 || this.form.colorTemperatureFirst > 5000)){
                this.form.colorTemperatureSecond = ''
                this.form.colorTemperatureThird = ''
                this.form.colorTemperatureFourth = ''
                this.disabledColorTemperature2 = true
                this.disabledColorTemperature3 = true
                this.disabledColorTemperature4 = true
            }else{
                this.disabledColorTemperature2 = false
                this.disabledColorTemperature3 = false
                this.disabledColorTemperature4 = false
            }
            this.generateColorTempNo()
        },
        changeColorTemperature2(val){
            if(this.form.colorTemperatureSecond != "" && !isNaN(this.form.colorTemperatureSecond)){
                this.form.colorTemperatureSecond = parseInt(this.form.colorTemperatureSecond)
            }else{
                this.form.colorTemperatureSecond = ''
            }
            //如果选择的值 小于2700 或大于5000 只可有这一个值
            if(this.form.colorTemperatureSecond != '' && (this.form.colorTemperatureSecond < 2700 || this.form.colorTemperatureSecond > 5000)){
                this.form.colorTemperatureFirst = ''
                this.form.colorTemperatureThird = ''
                this.form.colorTemperatureFourth = ''
                this.disabledColorTemperature1 = true
                this.disabledColorTemperature3 = true
                this.disabledColorTemperature4 = true
            }else{
                this.disabledColorTemperature1 = false
                this.disabledColorTemperature3 = false
                this.disabledColorTemperature4 = false
            }
            
            this.generateColorTempNo()
        },
        changeColorTemperature3(val){
            if(this.form.colorTemperatureThird != "" && !isNaN(this.form.colorTemperatureThird)){
                this.form.colorTemperatureThird = parseInt(this.form.colorTemperatureThird)
            }else{
                this.form.colorTemperatureThird = ''
            }
            //如果选择的值 小于2700 或大于5000 只可有这一个值
            if(this.form.colorTemperatureThird != '' && (this.form.colorTemperatureThird < 2700 || this.form.colorTemperatureThird > 5000)){
                this.form.colorTemperatureSecond = ''
                this.form.colorTemperatureFirst = ''
                this.form.colorTemperatureFourth = ''
                this.disabledColorTemperature2 = true
                this.disabledColorTemperature1 = true
                this.disabledColorTemperature4 = true
            }else{
                this.disabledColorTemperature2 = false
                this.disabledColorTemperature1 = false
                this.disabledColorTemperature4 = false
            }
            this.generateColorTempNo()
        },
        changeColorTemperature4(val){
            if(this.form.colorTemperatureFourth != "" && !isNaN(this.form.colorTemperatureFourth)){
                this.form.colorTemperatureFourth = parseInt(this.form.colorTemperatureFourth)
            }else{
                this.form.colorTemperatureFourth = ''
            }
            //如果选择的值 小于2700 或大于5000 只可有这一个值
            if(this.form.colorTemperatureFourth != '' && (this.form.colorTemperatureFourth < 2700 || this.form.colorTemperatureFourth > 5000)){
                this.form.colorTemperatureSecond = ''
                this.form.colorTemperatureThird = ''
                this.form.colorTemperatureFirst = ''
                this.disabledColorTemperature2 = true
                this.disabledColorTemperature3 = true
                this.disabledColorTemperature1 = true
            }else{
                this.disabledColorTemperature2 = false
                this.disabledColorTemperature3 = false
                this.disabledColorTemperature1 = false
            }
            this.generateColorTempNo()
        },
        generateColorTempNo(){
            
            
            var color1 = this.getColorCodeByValue(this.form.colorTemperatureFirst)
            var color2 = this.getColorCodeByValue(this.form.colorTemperatureSecond)
            var color3 = this.getColorCodeByValue(this.form.colorTemperatureThird)
            var color4 = this.getColorCodeByValue(this.form.colorTemperatureFourth)

            var testList = []
            testList.push(color1)
            testList.push(color2)
            testList.push(color3)
            testList.push(color4)
            var temp = ''
            if(color1 != ''){
                temp = color1 + '-'
                this.checkExists(0,testList)
            }
            if(color2 != ''){
                temp += color2 + '-'
                this.checkExists(1,testList)
            }
            if(color3 != ''){
                temp += color3 + '-'
                this.checkExists(2,testList)
            }
            if(color4 != ''){
                temp += color4 + '-'
                this.checkExists(3,testList)
            }
            this.form.colorTempeNo = temp.substring(0,temp.length-1)
            this.generateLampParamNo()
        },
        checkExists(index,list){
            for(var i = 0;i<list.length;i++){
                if(i == index || list[i] == ''){
                    continue
                }
                if(list[index] == list[i]){
                    if(index == 0){
                        this.form.colorTemperatureFirst =''
                    }else if(index == 1){
                        this.form.colorTemperatureSecond =''
                    }else if(index == 2){
                        this.form.colorTemperatureThird =''
                    }else if(index == 3){
                        this.form.colorTemperatureFourth =''
                    }
                }
            }
        },
        getColorCodeByValue(val){
            var code = ''
            if(val != ''){
                if(val <= 1810){
                    code = 'N'
                }else if(val > 1810 && val < 2510){
                    code = 'F'
                }else if (val >2510 && val < 2810){
                    code = 'Y'
                }else if (val >2810 && val < 3510){
                    code = 'W'
                }else if (val >3510 && val < 4510){
                    code = 'M'
                }else if (val >4510 && val < 5710){
                    code = 'C'
                }else{
                    code = 'D'
                }
            }
            return code
        },
        setPopoverSurfaceTemperature(item){

            this.$refs.popoverSurfaceTemperature.doClose()
            this.form.surfaceTemperature = this.HTMLDecode(item.dictCont)
            // this.form.surfaceTemperatureText = item.dictCont
        },
        surfaceTemperatureTextBlur(){
            // this.form.surfaceTemperature = this.form.surfaceTemperatureText
        },
        removeSelf(index){
            //删除品牌

            for(var i = 0;i<this.lampBrandList.length;i++){
                if(this.lampBrandList[i].id == this.chooselampBrandList[index].id){
                    this.lampBrandList[i].delFlag = "0"
                }
            }

            for(var i = 0;i<this.lampBrandListBak.length;i++){
                if(this.lampBrandListBak[i].id == this.chooselampBrandList[index].id){
                    this.lampBrandListBak[i].delFlag = "0"
                }
            }

            this.chooselampBrandList.splice(index,1)

            let tempval = '';
            for(var i = 0;i<this.lampBrandListBak.length;i++){
                if(this.lampBrandListBak[i].delFlag == "1"){
                    tempval+=this.lampBrandListBak[i].id + ","
                }
            }
            tempval=tempval.substr(0,tempval.length-1)
            this.request.brandIds = tempval
            
            this.search(1)
        },
        setpopover1(item){
            this.$refs.popover1.doClose()
            this.form.lampQuality = item.dictCont
            // this.form.lampQualityText = item.dictCont
        },
        lampQualityTextBlur(){
            // this.form.lampQuality = this.form.lampQualityText
        },
        setpopover2(item){
            this.$refs.popover2.doClose()
            this.form.materialQuality = item.dictCont
            // this.form.materialQualityText = item.dictCont
        },
        materialQualityTextBlur(){
            // this.form.materialQuality = this.form.materialQualityText
        },
        setpopover3(item){
            this.$refs.popover3.doClose()
            this.form.installType = item.dictCont
            // this.form.installTypeText = item.dictCont
        },
        installTypeTextBlur(){
            // this.form.installType = this.form.installTypeText
        },
        setpopover4(item){
            this.$refs.popover4.doClose()
            this.form.attachDemand = item.dictCont
            // this.form.attachDemandText = item.dictCont
        },
        attachDemandTextBlur(){
            // this.form.attachDemand = this.form.attachDemandText
        },
        HTMLDecode(text) { 
            var temp = document.createElement("div"); 
            temp.innerHTML = text; 
            var output = temp.innerText || temp.textContent; 
            temp = null; 
            return output; 
        },
        setpopover5(item){
            this.$refs.popover5.doClose()
            this.form.colorDemand = this.HTMLDecode(item.dictCont)
            // this.form.colorDemandText = item.dictCont
        },
        colorDemandTextBlur(){
            // this.form.colorDemand = this.form.colorDemandText
        },
        setpopover6(item){
            this.$refs.popover6.doClose()
            this.form.otherDemand = this.HTMLDecode(item.dictCont)
            // this.form.otherDemandText = item.dictCont
        },
        otherDemandTextBlur(){
            // this.form.otherDemand = this.form.otherDemandText
        },
        setPopoverProtectLevel(item){
            this.$refs.popoverProtectLevel.doClose()
            this.form.protectLevel = item.dictCont
            // this.form.protectLevelText = item.dictCont
        },
        protectLevelTextBlur(){
            // this.form.protectLevel = this.form.protectLevelText
        },
        setPopoverLampColor(item){
            this.$refs.popoverLampColor.doClose()
            this.form.lampColor = item.dictCont
            // this.form.lampColorText = item.dictCont
        },
        lampColorTextBlur(){
            // this.form.lampColor = this.from.lampColorText
        },
        setPopoverEffect(item){
            this.$refs.popoverEffect.doClose()
            this.form.effectDescription = this.HTMLDecode(item.dictCont)
            
        },
        effectDescriptionTextBlur(){
            // this.form.effectDescription = this.form.effectDescriptionText
        },
        setWorkVoltage(item){
            // this.form.workVoltageText = item.dictCont
            this.form.workVoltage = item.dictCont
            this.$refs.popoverWorkVoltage.doClose()
             this.form.securityFlag = false
            this.search(1)
        },
        workVoltageTextBlur(){
            // this.form.workVoltage = this.form.workVoltageText
             this.form.securityFlag = false
            this.search(1)
        },
        setInstallDirection(item){
            this.$refs.popoverInstallDirection.doClose()
            this.form.installDirection = item.dictCont
            // this.form.installDirectionText = item.dictCont
        },
        installDirectionTextBlur(){
            // this.form.installDirection = this.form.installDirectionText
        },
        changeColorTypeasd(item){

            this.currentColorType = item
            this.IsDanBaigt6500 = false
            this.IsDanBailt2700 = false
            this.form.grayDemand = item.id
            if(item.dictExtra == 1){
                this.form.colorTempeNo = 'X'
            }else if(item.dictExtra == 0){
                this.form.colorTempeNo = ''
                if(item.dictCont == "≥ 6500K" || item.id == 788){
                    this.IsDanBaigt6500 = true
                }else if(item.dictCont == "<2700K" || item.id == 786){
                    this.IsDanBailt2700 = true
                }
            }else{
                this.form.colorTempeNo = item.dictRemark
            }
            this.generateLampParamNo()
            if(item.dictExtra > 1){
                this.form.colorType = 2
            }else{
                this.form.colorType = 1
            }
            this.form.projectParamindexList[0].colorTemperatureCustom = ''
            // this.form.projectParamindexList[0].level0Custom = ''
            // this.form.projectParamindexList[0].verticalDown10Custom = ''
            if(this.form.projectParamindexList.length > 1){
                this.form.projectParamindexList[1].colorTemperatureCustom = ''
            }
            if(item.dictExtra > 1){
                if(this.currentColorType.dictCont == "RGB" || this.currentColorType.dictCont == "RGBW" || this.currentColorType.dictCont == "RGBL" ||this.currentColorType.dictCont == "RGBA"){
                    this.isRGBmen = true
                    var moreTemp = []
                    var list = this.currentColorType.dictCont.split('')
                    for(var i = 0;i<list.length;i++){
                        var colorCoordinate = ''
                        if(list[i]=='R'){
                            colorCoordinate = '625nm'
                        }else if(list[i] == 'G'){
                            colorCoordinate = '530nm'
                        }else if(list[i] == 'B'){
                            colorCoordinate = '470nm'
                        }else if(list[i] == 'A'){
                            colorCoordinate = '590nm'
                        }else if(list[i] == 'L'){
                            colorCoordinate = '565nm'
                        }
                        moreTemp.push({
                            name:list[i],
                            colorPower:'',
                            colorCoordinate:colorCoordinate
                        })
                    }
                    this.moreChooseColorList = moreTemp
                }else if(this.currentColorType.dictCont=="双色" || this.currentColorType.dictCont=="三色" || this.currentColorType.dictCont=="其他四色"){
                    this.isRGBmen = false
                    var list = parseInt(this.currentColorType.dictExtra)
                    var other234List = []
                    for(var i =0;i<list;i++){
                        other234List.push({
                            colorTemperature:'',
                            colorPower:'',
                            colorCoordinate:''
                        })
                    }
                    this.other234ColorList = other234List;
                }
            }else{
                this.other234ColorList = []
                this.moreChooseColorList = []
            }
            this.form.securityFlag = false
        },
        //改变 colorTypeList
        changeColorTypeEdit(item){
            this.changeColorTypeasd(item);
        },
        //改变 colorTypeList
        changeColorType(item){
            this.changeColorTypeasd(item);
            this.search(1)
        },
        ShowMenuOrHideMenu(){
            this.isShowMenu = !this.isShowMenu;
        },
        //选择应用面
        chooseContestType(item,flag){
            this.currentcontestforTypeInfoChild={
                id:0,
                sketchAttrCoordinate:{}
            },
            this.form.makingWay = 1 
            this.form.contestType = item.contestTypeId //应用面id
            this.form.contestSketchId = item.id //示意图id
            this.form.contestSketchPath = item.sketchMapOriginal
            this.currentContestType = item
            
            if(item.contestTypeStr!='不控光点光源' &&item.contestTypeStr!='控光点光源' &&item.contestTypeStr!='远视点光源' &&item.contestTypeStr!='自发光线'&&item.contestTypeStr!='单侧导光'&&item.contestTypeStr!='双侧导光'){
                this.form.albedo = '0.4'
            }else{
                this.form.albedo = ''
            }

            this.isShowContestType = false
            if(this.currentContestType.contestTypeStr != this.editContestTypeStr){
                this.initContestTypeInfo(flag)
            }
        },
        changeContestTypeListforType(item){
            //加载灯参示意图列表    
            this.loadContestTypeList(this.currentcontestforTypeInfo.contestTypeIds) //,this.currentcontestforTypeInfo.contestDescribe
            if(item!=null && item != ''){
                this.showChildList= true
                
                this.contestTypeListforTypeChild = item.chlidList
                this.currentcontestforTypeInfoChild={
                    id:0,
                    sketchAttrCoordinate:{

                    }
                },
                this.showFile1 = false
            }else{
                this.showChildList= false
                this.showFile1 = true
            }
        },
        changeContestTypeListforTypeChild(item){
            //加载灯参示意图列表    
            this.loadContestTypeList(this.currentcontestforTypeInfoChild.contestTypeIds,this.currentcontestforTypeInfoChild.contestDescribe)
            this.showFile1 = true
        },
        loadContestTypeList(contestTypeIds,contestDescribe){
            let self = this
            this.$http.postObj('/api/lampparams/contestSketch/json',{contestTypeIds:contestTypeIds,contestDescribe:contestDescribe},function(res){
                if(res.success){
                    self.contestTypeList = res.data
                    for(var i = 0;i<self.contestTypeList.length;i++){
                        if(self.contestTypeList[i].sketchAttr != "" && self.contestTypeList[i].sketchAttr != undefined){
                            self.contestTypeList[i].sketchAttr = JSON.parse(self.contestTypeList[i].sketchAttr);
                        }
                        // if(contestTypeId != null && contestTypeId != '' && contestTypeId != undefined){
                        //     if(self.contestTypeList[i].id == contestTypeId){
                        //         self.currentcontestforTypeInfo = self.contestTypeList[i]
                        //     }
                        // }
                    }
                }
            })
        },
        //选择灯具下拉菜单
        changeLampType(item){
            this.form.lampType = item.id
            this.form.lampNo = item.dictRemark
            this.checkPower()
            this.generateLampParamNo()
            this.loadLampSketchList(1)
             this.form.securityFlag = false
            this.search(1)
        },
        //选择灯具示意图
        chooseLampSketch(item){
            this.currentLampSketch = item
            this.isShowLampSketch = false
            this.form.lampSketchId = item.id
            this.form.lampType = item.lampType
            this.form.lampNo = item.lampTypeNo

            this.form.lampLong = ''
            this.form.lampWidth = ''
            this.form.lampHeight = ''
            this.checkPower()
            this.generateLampParamNo()
             this.form.securityFlag = false
            this.search(1)
        },
        save(dataStatus){
            this.form.makingWay = 1 
            //暂存，生成时reCopy=0 ,另存时reCopy=1
            this.form.reCopy =0;
            if(dataStatus != 1){
                if(this.form.angleNo == ''){
                    this.$message.error('请选择光束角')
                    return false
                }
                if(this.form.colorTempeNo == ''){
                    this.$message.error('请选择色温色彩')
                    return false
                }

                if(this.form.lampNo == ''){
                    this.$message.error('请选择灯具类型')
                    return false
                }
                if(this.form.contestSketchPath == '' && this.form.lampSketchId ==''){
                    this.$message.error('请选择灯具示意图！')
                    return false
                }
                if(this.form.lampPower ==''){
                    this.$message.error('请选择填写功率！')
                    return false
                }
                if(isNaN(this.form.lampPower)){
                    this.$message.error('请输入正确的功率！')
                    return false
                }
            }

            if(dataStatus==3){
                this.form.dataStatus = 2;
                this.form.reCopy =1;
            }else{
                this.form.dataStatus = dataStatus;
            }
            let self = this
            
            if(this.form.colorType == 2){
                if(this.isRGBmen){
                    //rbgmen
                    if(this.moreChooseColorList.length > 0){
                        for(var i = 0;i<this.moreChooseColorList.length;i++){
                            if(this.moreChooseColorList[i].name != null && this.moreChooseColorList[i].name != ''){
                                var str = this.moreChooseColorList[i].name
                                if(this.moreChooseColorList[i].name == 'W'){
                                    str = this.moreChooseColorList[i].colorTemperature
                                }
                                this.form.projectParamindexList.push({
                                    colorTemperatureStr:str,
                                    colorPower:this.moreChooseColorList[i].colorPower,
                                    colorCoordinate:this.moreChooseColorList[i].colorCoordinate
                                })
                            }
                        }
                    }
                }else{
                    //其他 234色
                    if(this.other234ColorList.length > 0){
                        for(var i = 0;i<this.other234ColorList.length;i++){
                            // if(this.other234ColorList[i].colorTemperature != null && this.other234ColorList[i].colorTemperature != ''){
                                this.form.projectParamindexList.push({
                                        colorTemperatureStr:this.other234ColorList[i].colorTemperature,
                                        colorPower:this.other234ColorList[i].colorPower,
                                        colorCoordinate:this.other234ColorList[i].colorCoordinate
                                })
                            // }
                        }
                    }
                }
            }
            for(var i = 0;i<this.form.projectParamindexList.length;i++){
                if(this.form.projectParamindexList[i].createDate != null){
                    this.form.projectParamindexList[i].createDate = null
                }
                if(this.form.projectParamindexList[i].updateDate != null){
                    this.form.projectParamindexList[i].updateDate = null
                }
                if(this.form.projectParamindexList[i].id != null){
                    this.form.projectParamindexList[i].id = null
                }
            }
            // this.form.effectDescription = this.HTMLDecode(this.form.effectDescription)
            if(this.currentContestType.contestTypeStr=='正投'){
                if(this.tabMaxA == 1){
                    this.form.brightnessMax = 'brightnessMax'
                }else{
                    this.form.brightnessMax = 'brightnessA'
                }
            }
            this.generateLampParamNo()
            this.$http.postObj('/api/lampparams/create/'+this.form.reCopy,this.form,function(res){
                if(res.success){
                    self.$message({
                        message: "操作成功！",
                        type: "success"
                    });
                    // history.back()
                    self.goBack()
                }else{
                    self.$message.error(res.data)
                }
            })
        },
        goBack(){
            this.$router.push('/parameterLampList?id='+this.$route.query.pid+"&gd="+this.$route.query.gd+"&dio="+this.$route.query.dio+"&jduhh="+this.$route.query.jduhh+"&jduhhs="+this.$route.query.jduhhs)
        },
        loadLampSketchList(page){
            this.lampTypePage = page
            //加载灯参示意图列表    
            let self = this
            // alert(this.form.lampType)
            this.$http.postObj('/api/lampparams/lampSketchList',{lampType:this.form.lampType,page:this.lampTypePage,rows:9},function(res){
                if(res.success){
                    self.totalCountLamp = res.data.total
                    self.lampSketchList = res.data.rows
                    for(var i = 0;i<self.lampSketchList.length;i++){
                        if(self.lampSketchList[i].lampAttr != null && self.lampSketchList[i].lampAttr != "" && self.lampSketchList[i].lampAttr != undefined){
                            self.lampSketchList[i].lampAttr = JSON.parse(self.lampSketchList[i].lampAttr);
                        }
                        // if(lampSketchId!= null && lampSketchId != '' && lampSketchId != undefined){
                        //      //编辑时 选中list
                        //     if(self.lampSketchList[i].id == lampSketchId){
                        //         self.currentLampSketch = self.lampSketchList[i]
                        //     }
                        // }
                    }
                }
            })
        },
        initData(){
            this.loadLampSketchList(1)
            let self = this
            //加载光束角编号列表
            this.$http.postQuery('/api/lampparams/AnglemapList',{},function(res){
                if(res.success){
                    self.AnglemapList = res.data
                }
            })
            console.log("1")
            //灯具色温色彩列表
            this.$http.getSync('/api/dictTypeAllList',{indexPinyin:'dengjusecaifenlei'},function(res){
                if(res.success){
                    self.colorTypeList = res.data
                    //默认选中第2个
                    if(self.colorTypeList.length > 2){
                        let item = self.colorTypeList[1]
                            console.log(self.form.id)
                        if(self.form.id != null && self.form.id != ''){
                            self.changeColorTypeEdit(item)
                        }else{
                            self.changeColorType(item)
                        }

                        // self.currentColorType = item
                        // self.form.grayDemand = item.id
                        // if(item.dictExtra > 1){
                        //     self.form.colorType = 2
                        // }else{
                        //     self.form.colorType = 1
                        // }

                        // this.IsDanBaigt6500 = false
                        // this.IsDanBailt2700 = false
                    }
                }
            })
            //加载项目信息
            this.$http.get('/api/projects/view/'+this.form.projectId,{},function(res){
                self.currentProject = res.data
            })
            //加载灯参示意图列表
            this.$http.get("/api/contests/contestTypeList", {}, function(res) {
                if (res.success) {
                    for(var o = 0;o<res.data.length;o++){
                        if(res.data[o].chlidList != null && res.data[o].chlidList != undefined){
                            for(var i = 0;i<res.data[o].chlidList.length;i++){
                                if(res.data[o].chlidList[i].sketchAttrCoordinate != null && res.data[o].chlidList[i].sketchAttrCoordinate != '' && res.data[o].chlidList[i].sketchAttrCoordinate != undefined && typeof res.data[o].chlidList[i].sketchAttrCoordinate != undefined){
                                    res.data[o].chlidList[i].sketchAttrCoordinate = JSON.parse(res.data[o].chlidList[i].sketchAttrCoordinate);
                                }
                            }
                        }   
                    }
                    self.contestTypeListforType = res.data;
                }
            });
            this.$http.postObj('/api/lampparams/contestSketch/json',{},function(res){
                if(res.success){
                    self.contestTypeList = res.data
                    for(var i = 0;i<self.contestTypeList.length;i++){
                        if(self.contestTypeList[i].sketchAttr != "" && self.contestTypeList[i].sketchAttr != undefined){
                            self.contestTypeList[i].sketchAttr = JSON.parse(self.contestTypeList[i].sketchAttr);
                        }
                    }
                }
            })
            //加载灯具类型
            this.$http.get("/api/dictTypeAllList", {indexPinyin:'dengjuleixing'}, function(res) {
                if (res.success) {
                    self.lampTypeList = res.data;
                    // if(self.lampTypeList.length > 0){
                    //     self.form.lampType = self.lampTypeList[0].id
                    //     self.form.lampNo = self.lampTypeList[0].dictRemark
                    //     self.currentLampType = self.lampTypeList[0]
                    //     self.loadLampSketchList()
                    // }
                }
            });
            console.log("2")
            //控制位数
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'kongzhiweishu'},function(res){
                if(res.success){
                    self.controlDigitList = res.data
                    
                }
            })
            //加载品牌
            this.$http.postQuery('/api/brands/detectionBrandjson',{isOrgState: true},function(res){
                if(res.success){
                    self.lampBrandList = res.data;
                    self.lampBrandListBak = res.data;
                }
            })
            //加载其他自定义列表 
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'sewen/secai'},function(res){
                if(res.success){
                    self.mbColorList = res.data
                }
            })
            //加载色温色彩 单白列表
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'sewen/secai',dictGroup:'1'},function(res){
                if(res.success){
                    self.danbaiColorList = res.data
                }
            })

            //加载色温色彩 单色彩列表
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'sewen/secai',dictGroup:'2'},function(res){
                if(res.success){
                    self.dansecaiColorList = res.data
                }
            })
            //加载效果描述
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'xiaoguomiaoshu'},function(res){
                self.xiaoguomiaoshuList = res.data
            })
            //加载工作电压
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'gongzuodianya'},function(res){
                self.gongzuodianyaList = res.data
            })
            //加载安装方向
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'anzhuangfangxiang'},function(res){
                self.anzhuangfangxiangList = res.data
            })
            //加载灯具颜色
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'dengjuyanse'},function(res){
                self.dengjuyanseList = res.data
            })
            //表面温度
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'biaomianwendu'},function(res){
                self.biaomianwenduList = res.data
            })
            //防护等级
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'fanghudengji'},function(res){
                self.fanghudengjiList = res.data
            })
            //灯体材质
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'caijidengticaizhi'},function(res){
                self.caijidengticaizhiList = res.data
            })
            //表面材质
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'caijibiaomiancaizhi'},function(res){
                self.caijibiaomiancaizhiList = res.data
            })
            //安装方式
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'anzhuangfangshi'},function(res){
                self.anzhuangfangshiList = res.data
            })
            //附件要求
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'fujianyaoqiu'},function(res){
                self.fujianyaoqiuList = res.data
            })
            console.log("3")
            //动态效果
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'dongtaixiaoguo'},function(res){
                self.dongtaixiaoguoList = res.data
            })
            //其他要求
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'qitayaoqiu'},function(res){
                self.qitayaoqiuList = res.data
            })
            //控制协议1
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'kongzhixieyi'},function(res){
                if(res.success){
                    self.controlProtocol1List = res.data
                }
            })
            //控制协议2
            this.$http.get('/api/dictTypeAllList',{indexPinyin:'kongzhixieyierji'},function(res){
                if(res.success){
                    self.controlProtocol2List = res.data
                }
            })
            console.log("4")
            if(this.form.id != null){
                //编辑
                this.$http.get('/api/lampparams/editView/'+this.form.id,{},function(res){
                    if(res.success){
                        self.setEditInfo(res.data)
                        self.getWeightDefaultButton();
                        self.search(1)
                    }
                })
            }

        },
        setEditInfo(item){
            var info = item.projectLampparamVo
            var list = item.projectParamindexList
            this.form.angleNo = info.angleNo
            this.editStatus = info.dataStatus

            //判断登录人是不是创建灯参的人 不是只能另存为
            
            let self = this
            this.$http.get('/api/users/getCurrentUser',{},function(res){
                self.lampparamUserIsCreateUser = info.createBy == res.data.id
            })
            // if(info.contestSketchId != null && info.contestSketchId != ''){
            //     for(var i = 0;i<this.contestTypeList.length;i++){
            //         if(this.contestTypeList[i].id == info.contestSketchId){
            //             this.chooseContestType(this.contestTypeList[i],true)
            //             this.editContestTypeStr = this.contestTypeList[i].contestTypeStr
            //         }
            //     }
            // }
            // if(this.form.contestType == ''){ //没匹配到
                this.form.makingWay = 1 
                this.form.contestType = info.contestType //应用面id
                this.form.contestSketchId = info.contestSketchId
                this.form.contestSketchPath = info.contestSketchPath
                this.currentContestType.sketchMapOriginal = info.contestSketchPath
                // this.currentContestType.contestTypeStr = item.contestTypeDict.dictCont //显示名字
                this.form.contestType = info.contestType
                this.currentContestType.contestTypeStr = info.contestTypeString 
                if(item.contestSketch != null && item.contestSketch.sketchAttr != null && item.contestSketch.sketchAttr != ''){
                    this.currentContestType.sketchAttr = JSON.parse(item.contestSketch.sketchAttr)
                }
                this.editContestTypeStr = info.contestTypeString

                for(var i = 0;i<this.contestTypeListforType.length;i++){
                    if(this.contestTypeListforType[i].contestTypeIds.indexOf(this.form.contestType) > -1){
                        var childList = this.contestTypeListforType[i].chlidList
                        for(var j = 0;j<childList.length;j++){
                            if(childList[j].contestTypeIds==this.form.contestType){
                                this.currentcontestforTypeInfoChild.parentId = childList[j].parentId
                                this.currentContestType.contestTypeStr = childList[j].contestTypeStr
                                if(childList[j].sketchAttrCoordinate != null && childList[j].sketchAttrCoordinate != undefined){
                                    //this.currentcontestforTypeInfoChild.sketchAttrCoordinate = childList[j].sketchAttrCoordinate;
                                }
                            }
                        }
                    }
                }

                this.initContestTypeInfo(true)
            // }
            this.form.customLampparmNo = info.customLampparmNo
            if(info.customLampparmNo != null && info.customLampparmNo != ''){
                this.bnho2 = true
            }
            this.form.powerNo = info.powerNo
            this.form.contestH = info.contestH
            this.form.contestW = info.contestW
            this.form.contestW1 = info.contestW1
            this.form.contestW2 = info.contestW2
            this.form.lumSize = info.lumSize
            this.form.lumSizeMin = info.lumSizeMin


            this.form.lampLong = info.lampLong
            this.form.lampWidth = info.lampWidth
            this.form.lampHeight = info.lampHeight
            this.form.lampNo = info.lampNo
            this.form.lampType = info.lampType
            // for(var i = 0;i<this.lampTypeList.length;i++){
            //     if(this.lampTypeList[i].dictCont == info.lampType){
            //         this.currentLampType = this.lampTypeList[i]
            //     }else if(this.lampTypeList[i].id == info.lampType){
            //         this.currentLampType = this.lampTypeList[i]
            //     }
            // }
            // if(info.lampSketchId != null && info.lampSketchId != ''){
            //     //根据灯具类型 加载list
            //     this.form.lampSketchId = info.lampSketchId
            //     this.loadLampSketchList(info.lampSketchId)
            // }else{
                this.form.lampSketchId = info.lampSketchId
                this.form.lampSketchPath = info.lampSketchPath
                this.currentLampSketch.sketchMapOriginal = info.lampSketchPath
                // this.currentLampSketch.lampAttr.L = true
                // this.currentLampSketch.lampAttr.W = true
                // this.currentLampSketch.lampAttr.D = true
                if(item.lampSketch != null && item.lampSketch.lampAttr != null && item.lampSketch.lampAttr != ''){
                    this.currentLampSketch.lampAttr = JSON.parse(item.lampSketch.lampAttr)
                }else{
                    this.currentLampSketch.lampAttr.L = true
                    this.currentLampSketch.lampAttr.W = true
                    this.currentLampSketch.lampAttr.D = true
                }
                this.loadLampSketchList(1)
            // }
            this.form.albedo = info.albedo

            this.form.effectDescription = info.effectDescription
            
            this.form.lightType=info.lightType
            this.form.workVoltage = info.workVoltage
            
            this.form.lampPower=info.lampPower
            this.blurPower()
            this.$http.postQuery('/api/lampparams/lamps/getPowerNo',{lampType:self.form.lampType,powerValue:self.form.lampPower},function(res){
                        if(res.success){
                            self.form.powerNo = res.data.powerNo
                        }
            })
            this.form.installDirection = info.installDirection
            
            this.form.colorTemperature = info.colorTemperature
            this.form.colorTemperatureStr = info.colorTemperatureStr
            
            this.form.colorTemperatureStr = info.colorTemperatureStr
            this.form.colorTempeNo = info.colorTempeNo
            this.form.lampColor = info.lampColor
            
            this.form.surfaceTemperature = info.surfaceTemperature
            
            this.form.protectLevel = info.protectLevel
            
            this.form.lampQuality = info.lampQuality
            
            this.form.materialQuality = info.materialQuality
            
            this.form.installType = info.installType
            
            this.form.weight = info.weight
            this.form.controlDigit = info.controlDigit
            this.form.attachDemand = info.attachDemand

            this.form.isControl = info.isControl
            this.form.controlProtocol = info.controlProtocol
            if(info.controlProtocol != null && info.controlProtocol != ""){
                var controlSP = info.controlProtocol.split(',')
                this.controlProtocol1 = controlSP[0]
                for(var i = 0;i<this.controlProtocol1List.length;i++){
                    if(this.controlProtocol1List[i].id==this.controlProtocol1){
                        this.controlProtocol1 = this.controlProtocol1List[i].dictCont
                    }
                }
                this.controlProtocol2 = controlSP[1]
                for(var i = 0;i<this.controlProtocol2List.length;i++){
                    if(this.controlProtocol2List[i].id==this.controlProtocol2){
                        this.controlProtocol2 = this.controlProtocol2List[i].dictCont
                    }
                }
            }
            this.form.colorDemand = info.colorDemand
            
            this.form.otherDemand = info.otherDemand
            
            // if(info.recommendBrand != ''){
            //     var tempBrandList = info.recommendBrand.split(',')
            //     for(var i = 0;i<this.lampBrandList.length;i++){
            //         for(var j = 0;j<tempBrandList.length;i++){
            //             if(this.lampBrandList[i].id == tempBrandList[j]){
            //                 this.chooseLampBrand.push(this.lampBrandList[i])
            //             }
            //         }
            //     }
            // }
            if(this.currentContestType.contestTypeStr == "正投"){
                if(info.brightnessMax == 'brightnessMax'){
                    this.tabMaxA = '1'
                }else{
                    this.tabMaxA = '2'
                }
            }

            this.form.grayDemand = info.grayDemand
            
            if(this.colorTypeList.length > 0){
                for(var i = 0;i<this.colorTypeList.length;i++){
                    if(this.form.grayDemand == this.colorTypeList[i].id){
                        this.currentColorType = this.colorTypeList[i]
                        if(this.currentColorType.dictExtra > 1){
                            this.form.colorType = 2
                        }else{
                            this.form.colorType = 1
                        }
                    }
                }
            }
                        if(this.form.colorType == 2){
                            var skip = 1;
                            if(this.currentContestType.contestTypeStr == "窗框" || this.currentContestType.contestTypeStr == "复合面"){
                                skip = 2
                            }
                            if(this.currentColorType.dictCont == "RGB" || this.currentColorType.dictCont == "RGBW" || this.currentColorType.dictCont == "RGBL" ||this.currentColorType.dictCont == "RGBA"){
                                this.isRGBmen = true
                                var moreTemp = []
                                var lists = this.currentColorType.dictCont.split('')
                                for(var i = 0;i<lists.length;i++){
                                    moreTemp.push({
                                        name:lists[i],
                                        colorTemperature:list[i+skip].colorTemperatureStr,
                                        colorPower:list[i+skip].colorPower == null ? "" : list[i+skip].colorPower,
                                        colorCoordinate:list[i+skip].colorCoordinate == null ? "" : list[i+skip].colorCoordinate
                                    })
                                }
                                
                                this.moreChooseColorList = moreTemp
                            }else if(this.currentColorType.dictCont=="双色" || this.currentColorType.dictCont=="三色" || this.currentColorType.dictCont=="其他四色"){
                                this.isRGBmen = false
                                var lists2 = parseInt(this.currentColorType.dictExtra)
                                var other234List = []
                                for(var i =0;i<lists2;i++){
                                    other234List.push({
                                        colorTemperature:list[i+skip].colorTemperatureStr,
                                        colorPower:list[i+skip].colorPower == null ? "" : list[i+skip].colorPower,
                                        colorCoordinate:list[i+skip].colorCoordinate == null ? "" : list[i+skip].colorCoordinate
                                    })
                                }

                                this.other234ColorList = other234List;
                            }

                            if(list.length >= skip){
                                this.form.projectParamindexList = []
                                for(var i = 0;i<skip;i++){
                                    this.form.projectParamindexList.push(list[i])
                                }
                            }
                            // this.form.projectParamindexList.splice(skip,this.form.projectParamindexList.length)
                        }else{
                            if(list != null && list.length > 0){
                                this.form.projectParamindexList = list
                            }
                        }
            this.form.lampparamNo = info.lampparamNo
        },
        changeWeightQuote(){
            var price = (this.request.priceWeight != "" && !isNaN(this.request.priceWeight)) ?  parseFloat(this.request.priceWeight) : 0
            var evenness = (this.request.evennessWeight != "" && !isNaN(this.request.evennessWeight)) ? parseFloat(this.request.evennessWeight) : 0
            var lightnessMax = (this.request.lightnessMaxWeight != "" && !isNaN(this.request.lightnessMaxWeight)) ?  parseFloat(this.request.lightnessMaxWeight) : 0
            var lightnessMin = (this.request.lightnessWeight != "" && !isNaN(this.request.lightnessWeight)) ?  parseFloat(this.request.lightnessWeight) : 0
            var lightnessAve = (this.request.lightnessAveWeight != "" && !isNaN(this.request.lightnessAveWeight)) ?  parseFloat(this.request.lightnessAveWeight) : 0
            var powerValue = (this.request.powerWeight != "" && !isNaN(this.request.powerWeight)) ?  parseFloat(this.request.powerWeight) : 0
            var total = (price + evenness + lightnessMax + lightnessMin + lightnessAve + powerValue);
            this.quota = 100 - total <= 0 ? '0' : 100 - total;
        },
        search(page){
            let self = this
            this.currentWeightButton = ''
            this.request.weightCode = ''
            this.request.page=page
            this.setRequestInfo()
            this.$refs.lampTable.search(3,this.currentContestType.contestTypeStr,this.request)
        },
        showSetDiv(){
            this.$refs.lampTable.showSetDiv()
        },
        searchweight(){
            this.showquanzhong = false
            let self = this
            this.setRequestInfo()
            
            var contestFrontId = this.currentContestType.contestFrontId
            if(contestFrontId == null){
                contestFrontId = this.currentcontestforTypeInfoChild.parentId
            }
            this.request.weightCode = this.currentWeightButton

            this.$refs.lampTable.searchWeight(3,contestFrontId,this.request)
            
            },
        setRequestInfo(){
            if(this.chooseDataType.length > 0){
                var temp = ''
                for(var i = 0;i<this.chooseDataType.length;i++){
                temp += this.chooseDataType[i] + ","
                }
                this.request.dataTypeStr = temp.substring(0,temp.length-1)
            }
            this.request.voltage = this.form.workVoltage

            // this.request.colorFlag = this.form.colorType
            this.request.albedo = this.form.albedo
            this.request.contestTypeId = this.form.contestType
            this.request.colorFlag = this.form.grayDemand
            // this.request.colorFlag = this.form.currentColorType.id
            // this.request.dictIdLtype = this.currentLampType.id
            this.request.powerMax = this.form.lampPower
            this.request.h = this.form.contestH
            this.request.w = this.form.contestW
            this.request.w1 = this.form.contestW1
            this.request.w2 = this.form.contestW2
            if(this.request.contestTypeId == 357){
                this.request.lumSizeMax = ''
                this.request.lumSize = this.form.lumSize
            }else{
                this.request.lumSize = ''
                this.request.lumSizeMax = this.form.lumSize
            } //含灯距离为精确查找
            this.request.projectId = this.form.projectId
            this.request.heightNs = this.form.lampHeight
            this.request.widthNs = this.form.lampWidth
            this.request.longNs = this.form.lampLong
            // if(this.currentLampType.id > 0){
                // this.request.lampIdsStr = this.currentLampType.id
                this.request.lampIdsStr = this.form.lampType
            // }
                if(this.currentContestType.contestTypeStr == "复合面" || this.currentContestType.contestTypeStr == "窗框"){
                    this.request.lightnessAveMinA = this.form.projectParamindexList[0].brightnessAvgMin
                    this.request.lightnessAveMaxA = this.form.projectParamindexList[0].brightnessAvgMax
                    this.request.lightnessMaxMaxA = this.form.projectParamindexList[0].brightnessMax
                    this.request.lightnessStartA = this.form.projectParamindexList[0].brightnessMin
                    this.request.evennessMinA = this.form.projectParamindexList[0].evenness

                    this.request.lightnessAveMinB = this.form.projectParamindexList[1].brightnessAvgMin
                    this.request.lightnessAveMaxB = this.form.projectParamindexList[1].brightnessAvgMax
                    this.request.lightnessMaxMaxB = this.form.projectParamindexList[1].brightnessMax
                    this.request.lightnessStartB = this.form.projectParamindexList[1].brightnessMin
                    this.request.evennessMinB = this.form.projectParamindexList[1].evenness
                }else{
                    this.request.lightnessAveMin = this.form.projectParamindexList[0].brightnessAvgMin
                    this.request.lightnessAveMax = this.form.projectParamindexList[0].brightnessAvgMax
                    this.request.lightnessMaxMax = this.form.projectParamindexList[0].brightnessMax
                    this.request.lightnessStart = this.form.projectParamindexList[0].brightnessMin
                    this.request.evennessMin = this.form.projectParamindexList[0].evenness
                    this.request.brightnessAMax = this.form.projectParamindexList[0].brightnessA

                    this.request.lightIntensity1Min=this.form.projectParamindexList[0].level0 //>=0
                    this.request.lightIntensity2Min=this.form.projectParamindexList[0].levelRight60
                    this.request.lightIntensity3Min=this.form.projectParamindexList[0].down45
                    this.request.lightIntensity3Max=this.form.projectParamindexList[0].down45Max
                    this.request.lightIntensity4Min=this.form.projectParamindexList[0].verticalDown60
                    this.request.lightIntensity5Min=this.form.projectParamindexList[0].levelLeft60
                    this.request.lightIntensity6Min=this.form.projectParamindexList[0].verticalUp30
                    this.request.lightIntensity6Max=this.form.projectParamindexList[0].verticalUp30Max
                    this.request.lightIntensity7Min=this.form.projectParamindexList[0].verticalDown10
                    this.request.lightIntensity8Min=this.form.projectParamindexList[0].verticalUp60
                    this.request.lightIntensity9Min=this.form.projectParamindexList[0].vertical10Left60
                    this.request.lightIntensity10Min=this.form.projectParamindexList[0].vertical10Right60
                }
            
        },
        make(){
            if(this.checkboxModel.length == 0){
                this.$message.error("请至少选择一项")
                return 
            }
            var workVoltage = 10000;
            var power = 0;
            //量化指标
            var lightnessAve = 0; //平均亮度  获取选中的最大最小值
            var lightnessAveMin = 10000;
            var lightnessAveMax = 0;
            var lightness = 10000;  //最小亮度
            var lightnessMax = 0;  //最大亮度
            var evenness = 10000;  //亮度均匀度
            var anbanHeight = 0;  //暗斑高度
            var lightIntensity1 = 10000;  //0°

            var lightIntensity2 = 10000;  //水平右60°
            var lightIntensity3min1 = 10000;  //下45° 最xiao
            var lightIntensity3Max = 0;  //下45° 最大
            var lightIntensity4 = 10000;  //下60°
            var lightIntensity5 = 10000; //水平左60°

            var lightIntensity6min1 = 10000;
            var lightIntensity6Max = 0;  //垂直上30° 最大
            var lightIntensity7 = 10000;  //下10°
            var lightIntensity8 = 10000;//垂直上60°
            var lightIntensity9 = 10000;//垂直下10°水平左60°
            var lightIntensity10 = 10000;//垂直下10°水平右60°
            //含灯距离
            var lumSize = 0;

            var contestH = this.checkboxModel[0].h;

            var contestW = this.checkboxModel[0].w;

            var contestW1 = this.checkboxModel[0].w1;

            var contestW2 = this.checkboxModel[0].w2;

            var lampLong = 0;

            var lampWidth = 0;

            var lampHeight = 0;

            var brandIdArr = [];

            var price = 0;
            var detectionIds = ''
            var bmianListstorageIds = []
            //其他就一次 复合面A面 也是这次 如果是A面有storageId 这个 就加到一个list里 再走一下下面这套方法
            for(var i = 0;i<this.checkboxModel.length;i++){
                var item = this.checkboxModel[i]
                detectionIds += item.id + ','
                if(item.contestTypeStr == "复合面" || item.contestTypeStr == "窗框"){
                    bmianListstorageIds.push(item.storageId)
                }
                if(item.authorizedPrice != "" && item.authorizedPrice > price){
                    price = item.authorizedPrice;
                }
                if (item.power != "" && item.power > power) {
                    power = item.power;
                }
                if (item.lightness != "" && item.lightness < lightness) {
                    lightness = item.lightness;
                }
                if (item.lightnessAve != "" && item.lightnessAve < lightnessAveMin) {
                    lightnessAveMin = item.lightnessAve;
                }

                if (item.lightnessAve != "" && item.lightnessAve > lightnessAveMax) {
                    lightnessAveMax = item.lightnessAve;
                }
                if(this.tabMaxA == 1){ //正投 a点 这个值是2

                    if (item.lightnessMax != "" && item.lightnessMax > lightnessMax) {
                        lightnessMax = item.lightnessMax;
                    }
                }
                if (item.evenness != "" && item.evenness < evenness) {
                    evenness = item.evenness;
                }
                if (item.anbanHeight != "" && item.anbanHeight > anbanHeight) {
                    anbanHeight = item.anbanHeight;
                }
                if(item.voltage != "" && item.voltage < workVoltage){
                    workVoltage = item.voltage
                }

                if (item.lumSize != "" && item.lumSize > lumSize) {
                    lumSize = item.lumSize;
                }
                if (item.longNs != "" && item.longNs > lampLong) {
                    lampLong = item.longNs;
                }

                if (item.widthNs != "" && item.widthNs > lampWidth) {
                    lampWidth = item.widthNs;
                }

                if (item.heightNs != "" && item.heightNs > lampHeight) {
                    lampHeight = item.heightNs;
                }

                if (item.lightIntensity1 != null && item.lightIntensity1 != "" && item.lightIntensity1 < lightIntensity1) {
                    lightIntensity1 = item.lightIntensity1;
                }

                if (item.lightIntensity2 != null && item.lightIntensity2 != "" && item.lightIntensity2 < lightIntensity2) {
                    lightIntensity2 = item.lightIntensity2;
                }
                if (item.lightIntensity3 != null && item.lightIntensity3 != "" && item.lightIntensity3 > lightIntensity3Max) {
                    lightIntensity3Max = item.lightIntensity3;
                }
                if (item.lightIntensity3 != null &&  item.lightIntensity3 != "" && item.lightIntensity3 < lightIntensity3min1) {
                    lightIntensity3min1 = item.lightIntensity3;
                }

                if (item.lightIntensity4 < lightIntensity4) {
                    lightIntensity4 = item.lightIntensity4;
                }

                if (item.lightIntensity5 != "" && item.lightIntensity5 < lightIntensity5) {
                    lightIntensity5 = item.lightIntensity5;
                }
                if (item.lightIntensity6 != "" && item.lightIntensity6 > lightIntensity6Max) {
                    lightIntensity6Max = item.lightIntensity6;
                }
                if (item.lightIntensity6 != "" && item.lightIntensity6 < lightIntensity6min1) {
                    lightIntensity6min1 = item.lightIntensity6;
                }
                if (item.lightIntensity7 != "" && item.lightIntensity7 < lightIntensity7) {
                    lightIntensity7 = item.lightIntensity7;
                }
                if (item.lightIntensity8 < lightIntensity8) {
                    lightIntensity8 = item.lightIntensity8;
                }
                if (item.lightIntensity9 != "" && item.lightIntensity9 < lightIntensity9) {
                    lightIntensity9 = item.lightIntensity9;
                }
                if (item.lightIntensity10 != "" && item.lightIntensity10 < lightIntensity10) {
                    lightIntensity10 = item.lightIntensity10;
                }
            }
            detectionIds = detectionIds.substring(0,detectionIds.length-1)
            this.form.detectionIds = detectionIds
            this.form.securityFlag = true
            if(workVoltage != 10000){
                this.form.workVoltage = workVoltage
            }
            if(price != 0){
                this.form.unitPrice = price
            }
            if (power != 0) {
                if(power >= 5){
                    this.form.lampPower = Math.ceil(power)
                }else{
                    this.form.lampPower = parseFloat(power).toFixed(1)
                }
                //this.checkPower()
                if(this.form.lampPower != null && this.form.lampPower != "" && !isNaN(this.form.lampPower) && this.form.lampType != '' ){
                    // this.form.lampPower = parseFloat(this.form.lampPower).toFixed(1)
                    let self = this
                    this.$http.postQuery('/api/lampparams/lamps/getPowerNo',{lampType:self.form.lampType,powerValue:self.form.lampPower},function(res){
                        if(res.success){
                            self.form.powerNo = res.data.powerNo
                            self.generateLampParamNo()
                        }
                    }) //加个blur  只能输入1位小数 提交的时候也验证一下是否是数字
                }
                this.form.securityFlag = false
            }
            if (lightness != 10000 && item.contestTypeStr != '正投') { //最小
                this.form.projectParamindexList[0].brightnessMin = parseInt(lightness)
            }
            if (lightnessAveMin != 10000) {
                this.form.projectParamindexList[0].brightnessAvgMin = parseInt(lightnessAveMin)
            }

            if (lightnessAveMax != 0) {
                this.form.projectParamindexList[0].brightnessAvgMax = Math.ceil(lightnessAveMax)
            }
        if(this.tabMaxA == 1){ //正投 a点 这个值是2

            if (lightnessMax != 0) { //最大
                this.form.projectParamindexList[0].brightnessMax = Math.ceil(lightnessMax)
            }
        }

            if (evenness != 10000) { //均匀
                this.form.projectParamindexList[0].evenness = evenness
            }

            if (anbanHeight != 0) {
                this.form.projectParamindexList[0].maculaHight = anbanHeight
            }

            if (lumSize != 0 && this.currentContestType.contestTypeStr!='窗框' ) {
                this.form.lumSize = lumSize
            }

            if (contestH != 0 &&(this.currentContestType.sketchAttr.H || (this.currentcontestforTypeInfoChild.sketchAttrCoordinate != null && this.currentcontestforTypeInfoChild.sketchAttrCoordinate.H))) {
                this.form.contestH = contestH
            }
            if (contestW != 0 && (this.currentContestType.sketchAttr.W || (this.currentcontestforTypeInfoChild.sketchAttrCoordinate != null && this.currentcontestforTypeInfoChild.sketchAttrCoordinate.W))) {
                this.form.contestW = contestW
            }
            if (contestW1 != 0 && (this.currentContestType.sketchAttr.W1 || (this.currentcontestforTypeInfoChild.sketchAttrCoordinate != null && this.currentcontestforTypeInfoChild.sketchAttrCoordinate.W1))) {
                this.form.contestW1 = contestW1
            }
            if (contestW2 != 0 && (this.currentContestType.sketchAttr.W2 || (this.currentcontestforTypeInfoChild.sketchAttrCoordinate != null && this.currentcontestforTypeInfoChild.sketchAttrCoordinate.W2))) {
                this.form.contestW2 = contestW2
            }

            if (lampLong != 0 && this.currentLampSketch.lampAttr.L) {
                this.form.lampLong = lampLong
            }

            if (lampWidth != 0 && this.currentLampSketch.lampAttr.W) {
                this.form.lampWidth = lampWidth
            }

            if (lampHeight != 0 && this.currentLampSketch.lampAttr.D) {
                this.form.lampHeight = lampHeight
            }
            if(item.contestTypeStr == '不控光点光源'){
                if (lightIntensity8 != 10000) {
                    this.form.projectParamindexList[0].verticalUp60 = parseInt(lightIntensity8)
                }
                if (lightIntensity1 != 10000) {
                    this.form.projectParamindexList[0].level0 = parseInt(lightIntensity1)
                }
                if (lightIntensity5 != 10000) {
                    this.form.projectParamindexList[0].levelLeft60 = parseInt(lightIntensity5)
                }
                if (lightIntensity2 != 10000) {
                    this.form.projectParamindexList[0].levelRight60 = parseInt(lightIntensity2)
                }
                if (lightIntensity4 != 10000) {
                    this.form.projectParamindexList[0].verticalDown60 = parseInt(lightIntensity4)
                }
            }else if(item.contestTypeStr == '控光点光源'){
                if (lightIntensity1 != 10000) {
                    this.form.projectParamindexList[0].level0 = parseInt(lightIntensity1)
                }
                if (lightIntensity6Max != 0) {
                    this.form.projectParamindexList[0].verticalUp30Max = Math.ceil(lightIntensity6Max)
                }
                if (lightIntensity5 != 10000) {
                    this.form.projectParamindexList[0].levelLeft60 = parseInt(lightIntensity5)
                }
                if (lightIntensity2 != 10000) {
                    this.form.projectParamindexList[0].levelRight60 = parseInt(lightIntensity2)
                }
                if (lightIntensity4 != 10000) {
                    this.form.projectParamindexList[0].verticalDown60 = parseInt(lightIntensity4)
                }
                if(this.checkboxModel.length > 1){
                    if (lightIntensity6min1 != 10000) {
                        this.form.projectParamindexList[0].verticalUp30 = parseInt(lightIntensity6min1)
                    }
                }else{
                    this.form.projectParamindexList[0].verticalUp30 = ''
                }
            }else if(item.contestTypeStr == '远视点光源'){
                
                if(this.checkboxModel.length > 1){
                    if (lightIntensity3min1 != 10000) {
                        this.form.projectParamindexList[0].down45 = parseInt(lightIntensity3min1)
                    }
                    if (lightIntensity6min1 != 10000) {
                        this.form.projectParamindexList[0].verticalUp30 = parseInt(lightIntensity6min1)
                    }
                }else{
                    this.form.projectParamindexList[0].down45 = ''
                    this.form.projectParamindexList[0].verticalUp30 = ''
                }
                if (lightIntensity6Max != 0) {
                    this.form.projectParamindexList[0].verticalUp30Max = Math.ceil(lightIntensity6Max)
                }
                if (lightIntensity3Max != 0) {
                    this.form.projectParamindexList[0].down45Max = Math.ceil(lightIntensity3Max)
                }
                if (lightIntensity7 != 10000) {
                    this.form.projectParamindexList[0].verticalDown10 = parseInt(lightIntensity7)
                }
                if (lightIntensity9 != 10000) {
                    this.form.projectParamindexList[0].vertical10Left60 = parseInt(lightIntensity9)
                }
                if (lightIntensity10 != 10000) {
                    this.form.projectParamindexList[0].vertical10Right60 = parseInt(lightIntensity10)
                }
            }
           


            this.getBmianList(bmianListstorageIds)

            // this.$set(this.form.projectParamindexList,0,this.form.projectParamindexList[0])
            this.generateLampParamNo()
            this.search()
        },
        getBmianList(bmianListstorageIds){
            var bmianList = []
            //量化指标
            var lightnessAve = 0; //平均亮度  获取选中的最大最小值
            var lightnessAveMin = 10000;
            var lightnessAveMax = 0;
            var lightness = 10000;  //最小亮度
            var lightnessMax = 0;  //最大亮度
            var evenness = 10000;  //亮度均匀度
            var anbanHeight = 0;  //暗斑高度
            var lumSize = 0;

            if(bmianListstorageIds.length > 0){
                for(var i = 0;i<this.tableData.length;i++){
                    var info = this.tableData[i]
                    if(info.surfaceType == "B"){
                        for(var j = 0;j<bmianListstorageIds.length;j++){
                            if(info.storageId == bmianListstorageIds[j]){
                                bmianList.push(info)
                            }
                        }
                    }
                }
            }
            if(bmianList.length > 0){
                for(var i = 0;i<bmianList.length;i++){
                    var item = bmianList[i]
                    
                    if (item.lightness != "" && item.lightness < lightness) {
                        lightness = item.lightness;
                    }
                    if (item.lightnessAve != "" && item.lightnessAve < lightnessAveMin) {
                        lightnessAveMin = item.lightnessAve;
                    }

                    if (item.lightnessAve != "" && item.lightnessAve > lightnessAveMax) {
                        lightnessAveMax = item.lightnessAve;
                    }

                    if (item.lightnessMax != "" && item.lightnessMax > lightnessMax) {
                        lightnessMax = item.lightnessMax;
                    }
                    if (item.evenness != "" && item.evenness < evenness) {
                        evenness = item.evenness;
                    }
                    if (item.anbanHeight != "" && item.anbanHeight > anbanHeight) {
                        anbanHeight = item.anbanHeight;
                    }
                    if (item.lumSize != "" && item.lumSize > lumSize) {
                        lumSize = item.lumSize;
                    }
                }
                  
                if (lightness != 10000) {
                    this.form.projectParamindexList[1].brightnessMin = lightness
                }
                if (lightnessAveMin != 10000) {
                    this.form.projectParamindexList[1].brightnessAvgMin = parseInt(lightnessAveMin)
                }

                if (lightnessAveMax != 0) {
                    this.form.projectParamindexList[1].brightnessAvgMax =  Math.ceil(lightnessAveMax)
                }

                if (lightnessMax != 0) {
                    this.form.projectParamindexList[1].brightnessMax = Math.ceil(lightnessMax)
                }

                if (evenness != 10000) {
                    this.form.projectParamindexList[1].evenness = parseInt(evenness)
                }

                if (anbanHeight != 0) {
                    this.form.projectParamindexList[1].maculaHight = anbanHeight
                }
                if (lumSize != 0) {
                    this.form.lumSize = lumSize
                }
            }
        },
    },
    created(){
        this.form.projectId = this.$route.query.id
        if(this.$route.query.cid !=null){
            this.form.id = this.$route.query.cid
        }
    },
     mounted(){
        this.initData()
         window.addEventListener('scroll',this.handleScroll,true)
            this.$nextTick(function () {
                this.tableHeight = window.innerHeight - 366;  
                let self = this;
                window.onresize = function() {
                    self.tableHeight = window.innerHeight - 366
                }

        })
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" >
.bai input{
    background:none !important
}
.jiaoIcon{
  position:absolute;
  right: 0;
  top:0;
  width: 50px;
  z-index:100;
}
.el-dropdown-link {
    cursor: pointer;
    color: #409EFF;
  }
  .el-icon-arrow-down {
    font-size: 12px;
  }
.swiper-button-white{
    background: rgba(0, 0, 0, 0.3);
    top:auto !important;
    margin-top: 0 !important;
    bottom: 0;
    height: 50px;
    background-size: 12px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
.gallery-top-box{
  height: 100%;
}
.gallery-thumbs-box{
  .gallery-thumbs{
    .swiper-slide{
        border-radius: 4px;
        overflow: hidden;
        &.swiper-slide-thumb-active::after{
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            left: 0;
            top:0;
            background-color: rgba(32, 140, 198, 0.5);
        }
        
    }
  }
}
.fdfd .el-dialog {
    max-height: 78%;
    .el-dialog__body{
        height: 500px;
        span{height: 100%;}
    }

}
.pingjun1{
    width: 170px !important;
    .el-input__inner{
        padding: 0 20px 0 5px !important;
    }
    .el-form-item{width: auto !important;}
    .el-form-item__content{
        width: 60px !important;
        display: inline-block;
    }
}
.iein.el-dialog__wrapper .el-dialog{
    height: auto;
    max-height: 80vh;
}
.custom_bg{
    .el-form{
        display:inline-block;
        width: 100%;
    }
    .lt_sw{
        float: left;
        .top{
            span{
                    font-size: 16px;
                padding: 0 12px;
                height: 34px;
                line-height: 34px;
                background-color: #eaeef1;
                border-radius: 4px;
                border: none;
                color: #333333;
                position: relative;
                top: 3px;
                display: inline-block;
            }
        }
    }
    .list_S{
        float: right;
    }
    .bolod {
    color: red;
    font-weight: 700;
}
}
.dynamic-class{
    padding: 0;
    .el-button--mini {
    position: absolute;
    right: 30px;
    color: #000;
    font-size: 18px;
}
    .el-button--mini{
        top: 7px;
    }
    .tp{
        background-color: #5a63a3;
        color: #fff;
        padding: 15px 25px;
    }
    .el-icon-error{
        color: #fff;
        font-size: 20px;
    }
    .contcheck{
         width: 770px;
         padding: 2% 5% 5%;
         .tishix{
          padding: 6px 15px;
          border-radius: 3px;
          background: rgba(90, 99, 163,0.2);
         }
         .el-form-item{
           margin-bottom: 0;
         }
         .el-form-item__content{
           .li_list{
             width: 25%;
            float: left;
            margin-right: 0;
            input{
              position: relative;
              top: 2px;
              margin-right: 3px;
            }
           }
         }
        .el-checkbox-group{
           width: 100%;
            padding: 15px 25px;
            display: inline-block;
            .el-checkbox{
                width: 25%;
                float: left;
                margin-right: 0;
            }
        }
        .btn{
            padding: 0 25px;
            text-align: center;
            button{
                padding: 7px 25px;
                background-color: #5a63a3;
                border-radius: 4px;
            }
        }
    }
}
.cdss{
    position: relative;
    top: 4px;
    padding: 0 0 5px;
    background: none;
    margin-right: 10px;
    border: none;
    img{
        display: inline-block;
        position: relative;
        top: 5px;
        margin: 0 5px;
    }
}
.centerCont.customHtml{
    margin-top: 0
}
.xzyysyt{
    .el-dialog__body{
        padding:10px 20px 20px;
    }
}
.fangx .el-input{
    margin-top: 7px;
}
.int1{
    .de{
        width: 23%;
        float: left;
        margin-left: 2.6666%;
        &:first-child{
            margin-left: 0
        }
    }
}
.dgybkg{
    .el-input__inner{
        background-color: #cde6c7;
    }
    .rt{
        .el-textarea{
            .el-textarea__inner{
                padding: 0;
                margin: 5px;
                width: 98%;
            }
        }
    }
}
.dianya{
    li{
        text-align: center !important;
    }
}
.ShowLampSketch_list{
    overflow: auto;
        max-height: 550px;
        height: 438px;
    ul.deul{
        overflow: hidden;
        li{
            width: 33.333%;
            float: left;
            padding: 2% 4%;
            text-align: center;
            border: 1px solid #ddd;
            .imgs{
                height: 120px;
            }
        }
    }
}
.sketchMap{
    .el-col{
        border: 1px solid #ddd;
        height: 166px;
        padding-top: 5px;
        cursor: pointer;
        &:hover{
            .img_item1{
                color: #5a63a3;
            }
        }
        .img_item{
            height: 122px;
        }
        .img_item1{
           text-align: center;
            padding: 10px;
        }
    }
}

.parameter .centerCont.customHtml{
    width: 100%;
    height: 100%;
    margin-bottom: 0;
    margin-left: 0px;
    float: none;
}
.custom{
    margin-top: 88px;
    padding: 15px;
    overflow: hidden;
    display: box;
    display: -webkit-box;
    height: calc(100vh - 88px);
    height: -webkit-calc(100vh - 88px);

    // position: relative;
    .zong{
         .customTop{
             display: inline-block;
             .customBack{
                 display: inline-block;
           }
        }
        .customLt{
            display: block;
            box-shadow: 0 0 0 0 #ccc;
        }
    }
    .zong{
        width: 807px;
        min-width: 807px;
        transition: all 0.2s;
        -moz-transition: all 0.2s;
        -webkit-transition: all 0.2s;
        -o-transition: all 0.2s;
        margin: auto;
        overflow: hidden;
         padding:  0;
        top:0;
        z-index: 99;
        background: #fff;
        
            border: 1px solid rgba(181, 181, 181, 0.4);
        .customTop{
            text-align: left;
            .customBack {
                // display: none;
                margin-right: 20px;
                i{
                    float: none;
                    position: relative;
                    top:2px;
                }
            }
           
        }
    }
    .customBack{
        color: #999999;
        i{
            width: 18px;
            height: 18px;
            line-height: 18px;
            color: #5a63a3;
            display: inline-block;
            border-radius: 50%;
            border: 1px solid #5a63a3;
            margin-right: 5px;
        }
    }
    .customTop{
        width: 100%;
        background: #fff;
        padding: 10px;
        .font16{
            color: #5a63a3;
        }
        i{
           color: #5a63a3;
           float: right; 
           cursor: pointer;
        }
    }
    .customLt{
        width: 100%;
        background-color:  #f4f4fc;
        .lts{
            background-color: rgba(90, 99, 163, 0.1);
            height: auto;
            line-height: auto;
            overflow: hidden;
            .ssew{
                display: block;
                line-height: 24px
            }
            .poi{
                font-size: 14px;
                line-height: 25px;
                display: block;
                float: none;
                .el-input{
                    width: 100px;
                    .el-input__inner{
                        height: 26px;
                        line-height: 26px;
                    }
                }
            }
            .font30{
               width: calc(100% - 435px);
                color: #333;
                padding:0px 10px ;
                line-height: 48px;
                font-size: 14px;
                float: left;
                margin-bottom: 5px;
                button{
                    padding: 5px 20px;
                }
            }
            .font18{
                width: 435px;
                color: #333;
                padding:7px 2px 8px;
                border-left: solid 1px rgba(181, 181, 181, 0.4);
                line-height: 1em;
                font-size: 18px;
                float: left;
                .el-form-item{
                    margin-bottom: 0;
                    &:first-child{
                        width: 200px;
                    }
                    .el-form-item__label{
                        padding: 0 4px 0 8px;
                    }
                    .el-form-item__content{
                        width: 122px;
                        line-height: 36px;
                        .el-input__inner{
                            height: 36px;
                            line-height: 36px;
                        }
                    }
                    &:last-child{
                        width: 220px;
                        margin-right: 0;
                        .el-form-item__content{
                            width: 160px;
                        }
                    }
                }
            }
        }
       
            .el-input__inner{
                height: 32px;
                line-height: 32px;
            }
            .el-input__suffix{
                .el-input__suffix-inner{
                    font-size: 12px;
                }
            }
            .contrascont{
                ul{
                    overflow: hidden;
                    &.uls{
                        display: flex;
                        display: -webkit-flex;
                        .lt{
                            width: 12.5%;
                            text-align: center;
                            background: #f6f7fb;
                            
                        }
                        .rt{
                            width: 87.5%;
                            border:none;
                            th{
                                height: 50px;
                                text-align: center;
                                padding:6px 5px;
                                 background: #f6f7fb;
                                 border-right: solid 1px rgba(184, 205, 217, 0.4);
                            }
                            td{
                                height: 50px;
                                text-align: center;
                                padding: 5px;
                                border-right: solid 1px rgba(184, 205, 217, 0.4);
                                border-bottom: solid 1px rgba(184, 205, 217, 0.4);
                                .el-form-item{
                                    margin-bottom: 0;
                                    margin-right: 0;
                                    .el-form-item__label{
                                        padding: 0 4px 0 6px;
                                        line-height: 32px;
                                    }
                                    .el-form-item__content{
                                        line-height: 32px;
                                        width: calc(100% - 21px);
                                        width: -webkit-calc(100% - 21px);
                                    }
                                }
                                &.pingjun{
                                    .el-form-item{
                                        width: 80px;
                                        margin-right: 0;
                                        
                                    }
                                    
                                }
                            }
                        }
                    }
                }
                .title{
                    height: 40px;
                    background-color: #5a63a3;
                    text-align: center;
                    line-height: 40px;
                    color: #fff;
                    font-size: 16px;
                    width: 100%;
                    padding: 0;
                    span{
                        font-size: 16px;
                    }
                }
                li{
                    float: left;
                    border: solid 1px rgba(184, 205, 217, 0.4);
                }
                .wh502{
                    .power{ 
                        margin-right: 4px;
                        .el-form-item__content{ 
                            .el-input{
                                width: 41px;
                               
                            }
                            .el-input__inner{
                                padding: 0 3px 0 3px !important;
                                 background-color: #cde6c7
                            }
                        }
                        &:last-child{
                            margin-right: 0;
                        }
                    }
                }
                .wh50{
                    width: 50%;
                    height: 290px;
                    text-align: center;
                    padding: 3px;
                    .img{
                        max-height: 220px;
                        margin-bottom: 20px;
                        height: 220px;
                        img{
                            max-height:220px;
                            max-width: 380px !important;
                        }
                    }
                    .power{
                        margin-bottom: 8px;
                        .el-input{
                            width: 56px;
                        }
                        .el-form-item__content{
                             line-height: 30px;
                             .el-input__inner{
                                height: 30px;
                                line-height: 30px;
                                padding: 0 17px 0 3px;
                            }
                        }
                        .el-form-item__label{
                            padding: 0 2px 0 5px;
                            line-height: 30px;
                            font-size: 12px;
                        }
                        
                    }
                }
                .cd1{
                    width: 12.5%;
                    background-color: #f6f7fb;
                    height: 50px;
                    text-align: center;
                    &.int1{
                         width: 70px;
                    }
                }
                .cd2{
                    width: 12.5%;
                    height: 50px;
                    text-align: left;
                    padding: 2px 12px;
                     .el-form-item{
                        margin-bottom: 0;
                        margin-right: 0;
                        .el-form-item__content{
                            width: calc(100% - 25px);
                            width: -webkit-calc(100% - 25px);
                        }
                    }
                     &.int2{
                        width: calc(12.5% + 25px);
                        width: -webkit-calc(12.5% + 25px);
                        padding: 2px;
                        border-right: none;
                        .el-input{
                            
                        }
                        .el-form-item__label{
                            padding: 0 4px 0 0;
                        }
                        .el-form-item__content{
                            width: 100%;
                        }
                        &.int3{
                            .el-form-item__content{
                                width: calc(100% - 25px);
                                width: -webkit-calc(100% - 25px);
                            }
                        }
                    }
                }
                .cd3{
                    width: 50%;
                    height: 50px;
                    text-align: left;
                     padding: 0 12px;
                }
                .cd4{
                    width: 14.2857%;
                    background-color: #f6f7fb;
                    height: 327px;
                    text-align: center;
                }
                .cd5{
                    width: 14.2857%;
                    .div1{
                        background-color: #f6f7fb;
                        height: 50px;
                        text-align: center;
                        border-bottom:1px solid #dae6ed;
                    }
                    .div2{
                        height: 55px;
                        padding: 5px;
                        border-bottom:1px solid #dae6ed;
                        .el-form-item__label{
                            padding: 0 4px 0 0;
                        }
                        &:last-child{
                            border: none;
                        }
                        .el-form-item{
                            margin-bottom: 0;
                            margin-right: 0;
                        }
                    }
                }
                .cd6{
                     .div2{
                          .el-form-item{
                            .el-form-item__content{
                                width: calc(100% - 25px);
                                width: -webkit-calc(100% - 25px);
                            }
                          }
                     }
                }
                .cd7{
                    width: 12.5%;
                    height: 200px;
                    text-align: center;
                    background: #f6f7fb;
                }
                .cd8{
                    width: 29.166666666%;
                    height: 50px;
                    text-align: center;
                    padding: 3px ;
                    .el-form-item{
                        margin-right: 0;
                    }
                }
                .cd9{
                    width: 37.5%;
                    height: 50px;
                    padding: 3px 10px;
                    .el-input{
                        margin-top: 6px;
                        .el-input__inner{
                            font-size: 12px;
                        }
                    }
                    .el-form-item{
                        margin: 0;
                        
                        .el-form-item__content{
                            width: 100%;
                            .el-select{
                                width: 100%;
                            }
                        }
                    }
                    &.cd99{
                        .el-input{
                            width: 48%;
                            
                            &:last-child{
                                margin-left: 4%;
                            }
                        }
                    }
                }
                .cd10{
                    width:37.5%;
                    height: 50px;
                    padding: 3px 10px;
                }
                .cd11{
                    width: 37.5%;
                    height: 50px;
                    padding: 3px 10px;
                    .el-form-item{
                        margin-right: 0;
                        .el-form-item__label{
                            padding: 0 4px;
                        }
                        .el-form-item__content{
                             width: calc(100% - 25px);
                             width: -webkit-calc(100% - 25px);
                        }
                    }
                }
                .cd111{
                    .el-form-item{
                        width: calc(50% - 23px);
                        width: -webkit-calc(50% - 23px);
                        .el-form-item__content{
                            width: 100%;
                        }
                    }
                    span{
                        width: 40px;
                        line-height: 1.5em;
                        display: inline-block;
                        margin: 0 3px;
                    }
                }
                .cd12{
                    width:  87.5%;
                    height: 50px;
                    padding: 3px 10px;
                    .dex{
                        margin-top: 4px;
                    }
                    .el-form-item{
                        margin: 0;
                        width: 100%;
                        .el-form-item__content{
                            width: 100%;
                            .el-select{
                                width: 100%;
                            }
                        }
                    }
                }
                .cd15{
                        height: 68px;
                    }
                .cd122{
                    .el-form-item{
                        width: auto;
                    }
                }
                .last{
                    width: 805px;
                    text-align: center;
                    position: fixed;
                    bottom: 0;
                    background: #fff;
                    &.active{
                        position: relative;
                    }
                    .el-form-item{
                        margin: 15px 10px;
                        .el-button--primary{
                            background-color: #5a63a3;
                            color: #fff;
                            border: none;
                        }
                    }
                }
            }
        
    }
}
.el-collapse-item__header{
    display: none
}
.custom_bg{
    padding-top: 0px !important;
    width: 100%;
    transition: all 0.6s;
    -moz-transition: all 0.6s;
    -webkit-transition: all 0.6s;
    -o-transition: all 0.6s;
    float:right;
    overflow: auto;
    height: 100%;
    .top{
        span{
            cursor: pointer;
        }
    }
    .el-table--scrollable-x .el-table__body-wrapper{
        // overflow-x: hidden;
    }
    &.active{
        width: -webkit-calc(100% - 60px);
        width: calc(100% - 60px);
        .el-table--scrollable-x .el-table__body-wrapper{
        overflow-x: auto;
    }
    }
    .el-form-item{
        margin-bottom: 10px;
    }

}
.custom_bg .box90{
    width: 100%;
    margin: auto;
    padding: 30px;
    background: #fff;
    .table_Bom{padding: 0;}
    .oiu{
        height: 40px;
        line-height: 40px;
    }
    .demo-form-inline{
        .el-form-item{
            .el-input{
                width: 90px;
            }
            .el-select{
                width: 200px;
                .el-input{
                    width: 100%;
                }
            }
        }
        .el-button--primary{
            background-color: #5962a3;
	        border-radius: 3px;
            border: none;
        }
    }
}
.xiala{
  min-width: 60px;
  padding: 10px 0;
  input{
    width: 90%;
    border-radius: 3px;
    border: 1px solid #ccc;
    margin:0 auto 6px;
    display: block;
  }  
  ul{
    li{
      padding: 4px;
      text-align: center;
      cursor: pointer;
      &:hover{
       background-color: rgba(90, 99, 163, 0.6);
        color: #fff;
      }
    }
  }
}
.xialas,.xiala {
    width: 278px;
    ul li{
        text-align: left;
    }
}
.xialas2,.xiala {
    width: 690px;
    ul li{
        text-align: left
    }
}
.el-input__suffix{
    font-size: 12px;
}
.el-collapse-item__arrow{
    display: none;
}
.sketchMap .lt,.sketchMap .rt{
    width: 50%;
    float: left;
    .has-gutter,thead{
        display: none;
    }
    .el-table__row{
        .cell{
            font-size: 12px;
        }
    }
}
.iein{
    height: auto;
}
.sketchMap{
    overflow: auto;
    max-height:500px;
}
// .custom{
//      max-height: calc(100vh - 88px);
//     max-height: -webkit-calc(100vh - 88px);
//     overflow: hidden;
// }
.layout-left{
    width:824px;
    max-height: calc(100vh - 118px);
    max-height: -webkit-calc(100vh - 118px);
    // float:left;
    transition:0.1s;
    overflow: auto;
    background: #fff;
}
/* 伸缩按钮部分 */
.layout-area{
  width:20px;
  height:44px;
  text-align: center;
  background: #fff;
  float:left;
  position:relative;
  top: 2px;
  left: -5px;
  z-index: 5;
  line-height: 44px;
}
.layout-area.active{
    left: -20px;
}
/* 伸缩按钮居中 */
.layout-area>div{
  display: inline-block;
  cursor:pointer;
  z-index:999;
}
/* 拖拽div */
.layout-proxy{
  position:absolute;
  cursor:w-resize;
  top: 44px;
  opacity:0;
  left:810px;
  width:26px;
  height:100%;
}
/* 过渡类 */
.left-enter,.left-leave-to{
  margin-left:-800px;
}
.left-enter-active,.left-leave-active{
  transition:0.1s;
}
/* 中间部分样式 */
.layout-center{
    // float:right;
    width: calc(100% - 830px);
    background: #fff;
    transition:0.1s;
    // height: calc(100vh - 118px);
    // height: -webkit-calc(100vh - 118px);
}
.lianghua{
    tr td{
        .el-form-item{
            .el-form-item__content{
                .el-input__inner{
                    padding:0 5px;
                    background-color: #cde6c7;
                }
            }
        }
    }
}
.rgb{
    .el-form-item{
        width: 100%;
        padding: 10px;
        .el-input{
            width: 140px;
        }
    }
    
}
	.lt_sw{
        .el-radio-button__orig-radio:checked+.el-radio-button__inner {
            background: #5a63a3 !important;
            color: #fff !important;
        }
        .el-radio-group .el-radio-button .el-radio-button__inner {
            height: 34px;
            background-color: #eaeef1;
            border-radius: 4px;
            border: none;
            margin-right: 4px;
            color: #333333;
            padding: 12px 12px;
        }
			margin-bottom: 18px;
			.el-radio-group{
				display: initial;
			}
			.weight{
				padding: 0 12px;
                height: 34px;
                background-color: #eaeef1;
                border-radius: 4px;
                border: none;
                margin-right: 4px;
                color: #333333;
                position: relative;
                top: 1px;
			}
		}
        .shuju_cont_list{
    .font30{
        text-align: center;
        color: #333;
        margin-bottom: 20px;
    }
    .shuju_cont_lt{
        width: 450px;
        text-align: center;
        position: relative;
        padding-bottom: 45px;
        float: left;
        .tishi{
          position: absolute;
          right: 8px;
          bottom: 56px
        }
        .img{
            display: inline-block;
            margin: auto;
        }
        .el-form-item{
            width: 100px;
            position: absolute;
            .el-form-item__label{
                line-height: 25px;
                width: 28px;
            }
            .el-form-item__content{
                float: right;
                line-height: initial;
                width: 68px;
            }
            .el-input{
            
                .el-input__inner{
                    height: 25px;
                    background-color: #ffffff;
                    border-radius: 5px;
                    border: solid 1px #c9c9c9;
                }
            } 
            &.form1{
                top: 0;
                left: 100px;
                .el-form-item__label{
                    float:right;
                    padding: 0;
                }
                .el-form-item__content{
                    float: left;
                }
            }
            &.form2{
                top: 60px;
                .el-form-item__label{
                    float:right;
                    padding: 0;
                }
                .el-form-item__content{
                    float: left;
                }
            }
            &.form3{
                top: 60px;
                right: 10px;
                .el-form-item__label{
                    padding: 0;
                    line-height: 20px;
                    position: relative;
                    top: -8px;
                }
            }
            &.form4{
                top: 190px;
                width: 112px;
                .el-form-item__label{
                    float:right;
                    padding: 0;
                    line-height: 20px;
                    position: relative;
                    top: -8px;
                    width: 42px;
                    text-align: left;
                }
                .el-form-item__content{
                    float: left;
                }
            }
            &.form5{
                top: 190px;
                right:9px;
                .el-form-item__label{
                    padding: 0;
                    line-height: 20px;
                    position: relative;
                    top: -8px;
                }
            }
            &.form6{
                bottom: 0;
                left: 140px;
                margin-bottom: 0;
                .el-form-item__label{
                    float:right;
                    padding: 0;
                    line-height: 20px;
                    position: relative;
                    top: -8px;
                    text-align: left;
                }
                .el-form-item__content{
                    float: left;
                }
            }
        }
    }
    .shuju_cont_rt{
        float: right;
        width: 170px;
        padding-top: 7%;
        text-align: center;
        .el-radio-button{
          margin-bottom: 10px;
          .el-radio-button__inner{
                border-left: 1px solid #DCDFE6;
                border-radius: 3px;
          }
          &:last-child{
            margin-bottom: 0;
          }
        }
        button{
            width: 114px;
            height: 36px;
            background-color: #f6f7fb;
            border-radius: 4px;
            color: #333333;
            margin-left: 0;
            margin-bottom: 15px;
        }
    }
    .submit{
        text-align: center;
        button{
            height: 30px;
            background-color: #5a63a3;
            border-radius: 4px;
            line-height: 30px;
            padding: 0;
            width: 90px;
        }
    }
}
.dp .el-button{
    padding: 12px 20px;
}
.dp .el-form-item__content{
    line-height: 34px;
}
.contrast{
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(0,0,0,0.5);
    z-index: -1;
    opacity: 0;
    display: none;
    &.active{
      opacity: 1;
      z-index: 99999;
      display: block;
    }
    .contrast_cont{
        display: inline-block;
        max-width: 1100px;
        max-height: 90vh;
        width: 100%;
        padding-bottom: 10px;
        vertical-align: middle;
        background-color: #fff;
        border-radius: 4px;
        border: 1px solid #ebeef5;
        font-size: 18px;
        box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
        text-align: left;
        overflow: hidden;
        backface-visibility: hidden;
        padding: 0;
        .lt_rt{
            display: box;
            display: -webkit-box;
            display: -moz-box;
            display: -o-box;
            position: relative;
            .rt_ct{
                width: 50%;
                padding: 10px 20px;
                position: relative;
                table{
                  width: 100%;
                  td{
                    font-size: 14px;
                    text-align: center;
                  }
                } 
                .el-icon-close{
                    float: right;
                   font-size: 20px;
                   cursor: pointer;
                   position: relative;
                }
                .p1{
                  font-size: 12px;
                  margin-bottom: 5px;
                }
                .cont{
                    position: relative;
                    margin-top: 18px;
                     .set{
                         position: absolute;
                         text-align: right;
                         right: 0;
                         top: 70px;
                         color: #333333;
                     }
                    .xian{
                        color: #333333;
                        position: relative;
                        padding: 0px 0 6px;
                        border-bottom: 2px solid #eeeeee;
                        span{
                            position: absolute;
                            right: 0;
                            top: 0;
                            font-size: 14px;
                            cursor: pointer;
                        }
                        .xian_rt{
                            float: right;
                            font-size: 14px;
                             position: absolute;
                            right: 0;
                            top: 0;
                            span{
                                position: initial;
                                color: #208cc6;
                            }
                        }
                    }
                    ul{
                        margin: 1rem 0 2rem;
                        position: relative;
                        li{
                            width: 50%;
                            display: inline-block;
                            font-size: 12px;
                            margin-bottom: 2px;
                            color: #333333;
                            line-height: 1em;
                            span:first-child{
                                color: #000;
                                font-weight: bold
                            }
                        }
                    }
                }
                .bottm{
                    text-align: center;
                        margin-top: 20px;
                    button{
                        background-color: #eeeeee;
                        font-size: 12px;
                            padding: 7px 15px;
                    }

                }   
            }
            .lt_ct{
                width: 50%;
                background-color: #f8f8f8;
                padding: 20px;
                position: relative;
                .top{
                    margin-bottom: 15px;
                    span{
                        color: #666666;
                        margin-right: 12px;
                        &:nth-child(1),&:nth-child(3){
                            color: #208cc6;
                        }
                        &:last-child{
                            float: right;
                            font-size: 12px;
                            margin-right:0;
                            img{
                                position: relative;
                                top: 2px;
                                margin-right: 5px;
                                display: inline-block;
                            }
                        }
                    }
                }
                .cents{
                    position: relative;
                  .cents_s{
                    height: 44vh;
                  }
                    .cout_list{
                      height: 100%;
                      .gallery-thumbs-box,.swiper-container,.swiper-wrapper{
                        height: 100%;
                      }
                        // img{
                        //    max-height: 44vh;
                        // }
                    }
                    .cent_ss{
                        overflow: auto;
                        margin-top: 16px;
                        padding: 0 38px;
                        li{
                            display: inline-block;
                            border-radius: 4px;
                            overflow: hidden;
                            margin-right: 10px;
                        }
                    }
                }
                .bom{
                    margin-top: 20px;
                    text-align: center;
                }
                .bottm{
                    text-align: center;
                    margin-top: 15px;
                    a{
                        background: #5a63a3;
                        color: #fff;
                        padding:8px 18px;
                        border-radius: 5px;
                        font-size: 13px;
                    }
                }
            }
        }
    }
}
.lianghua tr td .el-form-item.anban {
    width: 90px;
}
.lianghua tr td .el-form-item.anban .el-form-item__content .el-input__inner{
    background-color:#fff;
    width: 60px;
}
.dep{
    position: relative;
    cursor: pointer;
}
.e4y input{
        background-color: #cde6c7;
    }
 .e4y    .el-input__suffix{
     top: 5px;
 }
.e5y input{
    background-color: #cde6c7;
}
.pingjun1.pingjun2  .el-input__inner{
    background-color: #fff !important;
}
.wid100th{
    width: 110px !important;
    .el-form-item__content{
        width: 80px !important;
    }
}
.parameter .centerCont.customHtml{
    .el-table th{
        -webkit-user-select: all;
        -moz-user-select: all;
        -ms-user-select: all;
        user-select: all;
    }
}
.dwsddw{
    .el-input__inner{
        padding: 0 5px;
        text-align: center;
    }
}
.poi{
    display: inline-block;
    font-size: 14px;
    float:right;
    label{
        
        input{
            position: relative;
            top: 2px;
        }
    }
    .el-input{
        display: inline-block;
        width: 100px;
        input{
            padding: 0 5px;
        }
        
    }
}

.ulSte{
    height: 270px;
    overflow-y: auto;
}
.upload-demo1{
    display: inline-block
}
.upload-demo1 .el-button{
    padding: 14px 17px;
}
.list_SAS{
  width: 770px;
  height: auto;
  .el-dialog__header{
    position: absolute;
    width: 100%;
  }
  .el-dialog__body{
    padding: 0 0 20px;
     .contcheck .btn button{
       padding: 0;
     }
  }
  .cont{
    .title{
      font-size: 16px;
      color: #000;
      font-weight: bold;
      line-height: 1;
      margin-top: 15px;
    }
    .conts{
      display: inline-block;
      width: 100%;
    }
  }
}
.lt_sw2{
    float: right;
    .list_S{
        margin-top: 5px;
    }
}
.lt_sw2S{
    position: relative;
    display: inline-block;
    line-height: 40px;
    margin-right: 10px;
    .el-button{
        padding: 0;
        border: none;
    }
   
}
.parameter_top{
    span{
        margin-right: 10px;
    }
    .cont{
        display: inline-block;
        margin-right: 25px;
        margin-bottom: 20px;
        .title{
            display: inline-block;
        }
        .dee{
            display: inline-block;
            border: 1px solid #999;
            border-radius: 5px;
            padding: 3px 10px;
            height: auto;
            i{
                cursor: pointer;
                &:hover{
                    background: #5a63a3;
                    color: #fff;
                    border-radius: 50%;
                }
            }
        }
    }
}
.bukong_bom_list_search {
  .el-form-item__content {
    width: 300px;
    .el-input{
      width: 200px;
    }
    button{
          background-color: #5a63a3;
          border:none;
          color: #fff;
          padding: 0px 20px;
          height: 36px;
          line-height: 36px;
          margin-left: 10px;
          border-radius: 5px;
    }
  }
}
.bukong_bom_list_cont_s{
  position: relative;
}
.bukong_bom_list_TWO{
  .el-button{
    margin-right: 6px;
    margin-bottom: 6px;
  }
}
.bukong_bom_list_cont {
  position: relative;
  height: 360px;
  overflow: auto;
  margin-top: 18px;
  ul {
    li {
      float: left;
      width: 100px;
      text-align: center;
      background-color: #ffffff;
      margin: 5px;
      cursor: pointer;
      &.active{
        position: relative;
        .imgs{
           border: solid 1px #5962a3;
           position: relative;
           .el-upload-list__item-status-label{
            right: -17px;
            top: -7px;
            width: 46px;
            height: 26px;
            background: #5962a3;
            text-align: center;
            transform: rotate(45deg);
            box-shadow: 0 1px 1px #5962a3;
            display: block;
            .el-icon-check{
              color: #fff;
              position: absolute;
              right: 14px;
              top: 11px;
              transform:rotate(-50deg);
              -ms-transform:rotate(-50deg); 
              -moz-transform:rotate(-50deg); 
              -webkit-transform:rotate(-50deg); 
              -o-transform:rotate(-50deg);
            }
          }
        }
        p{
          color: #5962a3;
        }
      }
      .imgs {
        height: 90px;
        border: solid 1px #dcdcdc;
        border-radius: 4px;
        overflow: hidden;
        .BoxTable{
          height: 90px;
        }
        img{
             max-width: 90px !important;
             max-height: 80px;
           }
      }
      p {
        color: #333;
      }
    }
  }
}
.bukong_bom_list_search {
  .el-form-item__content {
    width: 300px;
    .el-input{
      width: 200px;
    }
    button{
          background-color: #5a63a3;
          border:none;
          color: #fff;
          padding: 0px 20px;
          height: 36px;
          line-height: 36px;
          margin-left: 10px;
          border-radius: 5px;
    }
  }
}
.xiaoguo{
  padding: 12px 20px;
  .effect{
      margin-bottom: 0px;
    }
    .el-input {
    width: 70px;
    .el-input__inner {
        width: 70px;
        height: 26px;
        padding: 0 5px;
    }
}
    .el-form-item__content{
      line-height: 30px;
      width: auto;
    }
  }
.desa{
    position: absolute;
    right: 30px;
    color: #000;
    font-size: 18px;
}
.pot .el-input__inner{
    padding: 0 2px;
}
// @media (min-width: 1800px) {
//     .centerCont.customHtml{
//         .table_Bom{
//             .el-table{
//                     height: calc(100vh - 269px) !important;
//             }
//         }
//     }
// }
// @media (min-width: 1590px) {
//     .centerCont.customHtml{
//         .table_Bom{
//             .el-table{
//                     height: calc(100vh - 335px) !important;
//             }
//         }
//     }
// }
</style>
